Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Issue 11573048: [Media Galleries] Move RemovableStorageInfo notifications to chrome namespace (part 2) (Closed)

Created:
8 years ago by Greg Billock
Modified:
7 years, 10 months ago
CC:
chromium-reviews, groby+watch_chromium.org, sail+watch_chromium.org, Aaron Boodman, chromium-apps-reviews_chromium.org, gbillock+watch_chromium.org, smckay+watch_chromium.org, erikwright+watch_chromium.org, rouslan+watch_chromium.org
Visibility:
Public.

Description

[Media Galleries] Move RemovableStorageInfo notifications to chrome namespace (part 2) R=thestig@chromium.org BUG=149059 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179438

Patch Set 1 #

Patch Set 2 : Rebase to head #

Total comments: 10

Patch Set 3 : Rebasing to part 1 #

Patch Set 4 : Follow API changes #

Patch Set 5 : More platform changes to follow api #

Patch Set 6 : Put base changes in another CL #

Patch Set 7 : Merge to head #

Total comments: 10

Patch Set 8 : Change include filename #

Total comments: 4

Patch Set 9 : Merge to head #

Patch Set 10 : Make singleton pointer live in base class. #

Total comments: 22

Patch Set 11 : Merge to head #

Patch Set 12 : Fix up tests, adapt to merge #

Patch Set 13 : Extract test class #

Patch Set 14 : Fixing up tests #

Total comments: 86

Patch Set 15 : Reduce indents, add symmetric checks #

Patch Set 16 : Typedef, init observer #

Total comments: 9

Patch Set 17 : Fix spacing, unused vars, etc #

Patch Set 18 : Merge to head #

Patch Set 19 : Fix merge #

Patch Set 20 : Update to catch newly-enabled tests #

Patch Set 21 : Fixes for windows #

Patch Set 22 : Working on windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+634 lines, -592 lines) Patch
M chrome/browser/extensions/api/media_galleries_private/media_galleries_private_apitest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.h View 1 2 3 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc View 1 2 3 4 5 6 7 8 6 chunks +14 lines, -13 lines 0 comments Download
M chrome/browser/media_gallery/media_file_system_registry.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/media_gallery/media_file_system_registry.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +23 lines, -21 lines 0 comments Download
M chrome/browser/media_gallery/media_file_system_registry_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 10 chunks +25 lines, -16 lines 0 comments Download
M chrome/browser/media_gallery/media_galleries_dialog_controller.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/media_gallery/media_galleries_dialog_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +15 lines, -14 lines 0 comments Download
M chrome/browser/system_monitor/media_storage_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +13 lines, -16 lines 0 comments Download
M chrome/browser/system_monitor/media_storage_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +16 lines, -4 lines 0 comments Download
M chrome/browser/system_monitor/media_transfer_protocol_device_observer_linux.h View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/system_monitor/media_transfer_protocol_device_observer_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +8 lines, -10 lines 0 comments Download
M chrome/browser/system_monitor/media_transfer_protocol_device_observer_linux_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +30 lines, -33 lines 0 comments Download
M chrome/browser/system_monitor/portable_device_watcher_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/system_monitor/portable_device_watcher_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/system_monitor/removable_device_notifications_chromeos.h View 1 2 3 4 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/system_monitor/removable_device_notifications_chromeos.cc View 1 2 3 4 5 6 7 8 9 6 chunks +4 lines, -23 lines 0 comments Download
M chrome/browser/system_monitor/removable_device_notifications_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 9 chunks +76 lines, -72 lines 0 comments Download
M chrome/browser/system_monitor/removable_device_notifications_linux.h View 1 2 3 4 5 6 7 4 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/system_monitor/removable_device_notifications_linux.cc View 1 2 3 4 5 6 7 8 9 8 chunks +4 lines, -21 lines 0 comments Download
M chrome/browser/system_monitor/removable_device_notifications_linux_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 26 chunks +93 lines, -87 lines 0 comments Download
M chrome/browser/system_monitor/removable_device_notifications_mac.h View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/system_monitor/removable_device_notifications_mac.mm View 1 2 3 4 5 6 7 8 9 6 chunks +3 lines, -19 lines 0 comments Download
M chrome/browser/system_monitor/removable_device_notifications_mac_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +70 lines, -79 lines 0 comments Download
M chrome/browser/system_monitor/removable_device_notifications_window_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/system_monitor/removable_device_notifications_window_win.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +3 lines, -18 lines 0 comments Download
M chrome/browser/system_monitor/removable_device_notifications_window_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 12 chunks +71 lines, -75 lines 0 comments Download
M chrome/browser/system_monitor/removable_storage_notifications.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/system_monitor/removable_storage_notifications.cc View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/system_monitor/removable_storage_notifications_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/system_monitor/test_removable_storage_notifications.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 20 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/system_monitor/test_removable_storage_notifications.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 20 1 chunk +36 lines, -0 lines 0 comments Download
M chrome/browser/system_monitor/test_volume_mount_watcher_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/system_monitor/volume_mount_watcher_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/system_monitor/volume_mount_watcher_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +10 lines, -8 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Greg Billock
8 years ago (2012-12-17 18:59:39 UTC) #1
Lei Zhang
Steve can tell you if this is where we want to move stuff as part ...
8 years ago (2012-12-17 20:10:39 UTC) #2
vandebo (ex-Chrome)
A couple structural comments to get your started. https://codereview.chromium.org/11573048/diff/3001/chrome/browser/system_monitor/removable_storage_notifications.h File chrome/browser/system_monitor/removable_storage_notifications.h (right): https://codereview.chromium.org/11573048/diff/3001/chrome/browser/system_monitor/removable_storage_notifications.h#newcode56 chrome/browser/system_monitor/removable_storage_notifications.h:56: class ...
7 years, 11 months ago (2013-01-04 19:58:38 UTC) #3
vandebo (ex-Chrome)
I had initially picked "StorageMonitor" for the name of the class, but "RemovableStorageNotifications" seems fine ...
7 years, 11 months ago (2013-01-04 21:06:03 UTC) #4
Greg Billock
https://codereview.chromium.org/11573048/diff/3001/chrome/browser/system_monitor/removable_device_notifications_linux_unittest.cc File chrome/browser/system_monitor/removable_device_notifications_linux_unittest.cc (right): https://codereview.chromium.org/11573048/diff/3001/chrome/browser/system_monitor/removable_device_notifications_linux_unittest.cc#newcode217 chrome/browser/system_monitor/removable_device_notifications_linux_unittest.cc:217: On 2013/01/04 21:06:03, vandebo wrote: > Why move this ...
7 years, 11 months ago (2013-01-07 21:55:18 UTC) #5
vandebo (ex-Chrome)
https://codereview.chromium.org/11573048/diff/39001/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_apitest.cc File chrome/browser/extensions/api/media_galleries_private/media_galleries_private_apitest.cc (right): https://codereview.chromium.org/11573048/diff/39001/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_apitest.cc#newcode6 chrome/browser/extensions/api/media_galleries_private/media_galleries_private_apitest.cc:6: #include "base/system_monitor/system_monitor.h" remove? https://codereview.chromium.org/11573048/diff/39001/chrome/browser/media_gallery/media_file_system_registry_unittest.cc File chrome/browser/media_gallery/media_file_system_registry_unittest.cc (right): https://codereview.chromium.org/11573048/diff/39001/chrome/browser/media_gallery/media_file_system_registry_unittest.cc#newcode272 chrome/browser/media_gallery/media_file_system_registry_unittest.cc:272: ...
7 years, 11 months ago (2013-01-11 22:06:50 UTC) #6
Hongbo Min
https://codereview.chromium.org/11573048/diff/57002/chrome/browser/media_gallery/media_file_system_registry_unittest.cc File chrome/browser/media_gallery/media_file_system_registry_unittest.cc (right): https://codereview.chromium.org/11573048/diff/57002/chrome/browser/media_gallery/media_file_system_registry_unittest.cc#newcode321 chrome/browser/media_gallery/media_file_system_registry_unittest.cc:321: RemovableStorageNotifications::GetInstance()->ProcessAttach( Is RemovableStorageNotifications instance always created for testing? Do ...
7 years, 11 months ago (2013-01-17 09:38:03 UTC) #7
Greg Billock
https://codereview.chromium.org/11573048/diff/39001/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_apitest.cc File chrome/browser/extensions/api/media_galleries_private/media_galleries_private_apitest.cc (right): https://codereview.chromium.org/11573048/diff/39001/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_apitest.cc#newcode6 chrome/browser/extensions/api/media_galleries_private/media_galleries_private_apitest.cc:6: #include "base/system_monitor/system_monitor.h" On 2013/01/11 22:06:50, vandebo wrote: > remove? ...
7 years, 11 months ago (2013-01-17 22:10:45 UTC) #8
vandebo (ex-Chrome)
https://codereview.chromium.org/11573048/diff/39001/chrome/browser/media_gallery/media_file_system_registry_unittest.cc File chrome/browser/media_gallery/media_file_system_registry_unittest.cc (right): https://codereview.chromium.org/11573048/diff/39001/chrome/browser/media_gallery/media_file_system_registry_unittest.cc#newcode272 chrome/browser/media_gallery/media_file_system_registry_unittest.cc:272: class MediaFileSystemRegistryTest : public ChromeRenderViewHostTestHarness { On 2013/01/17 22:10:45, ...
7 years, 11 months ago (2013-01-18 18:42:58 UTC) #9
Hongbo Min
https://codereview.chromium.org/11573048/diff/60004/chrome/browser/system_monitor/removable_storage_notifications.h File chrome/browser/system_monitor/removable_storage_notifications.h (right): https://codereview.chromium.org/11573048/diff/60004/chrome/browser/system_monitor/removable_storage_notifications.h#newcode48 chrome/browser/system_monitor/removable_storage_notifications.h:48: // TODO(gbillock): Change this method signature to use StorageInfo. ...
7 years, 11 months ago (2013-01-20 03:41:19 UTC) #10
Greg Billock
https://codereview.chromium.org/11573048/diff/39001/chrome/browser/media_gallery/media_file_system_registry_unittest.cc File chrome/browser/media_gallery/media_file_system_registry_unittest.cc (right): https://codereview.chromium.org/11573048/diff/39001/chrome/browser/media_gallery/media_file_system_registry_unittest.cc#newcode272 chrome/browser/media_gallery/media_file_system_registry_unittest.cc:272: class MediaFileSystemRegistryTest : public ChromeRenderViewHostTestHarness { On 2013/01/18 18:42:58, ...
7 years, 11 months ago (2013-01-22 20:00:39 UTC) #11
vandebo (ex-Chrome)
https://codereview.chromium.org/11573048/diff/60004/chrome/browser/media_gallery/media_file_system_registry_unittest.cc File chrome/browser/media_gallery/media_file_system_registry_unittest.cc (right): https://codereview.chromium.org/11573048/diff/60004/chrome/browser/media_gallery/media_file_system_registry_unittest.cc#newcode304 chrome/browser/media_gallery/media_file_system_registry_unittest.cc:304: class FakeRemovableStorageNotifications On 2013/01/22 20:00:39, Greg Billock wrote: > ...
7 years, 11 months ago (2013-01-22 23:37:24 UTC) #12
Greg Billock
https://codereview.chromium.org/11573048/diff/60004/chrome/browser/media_gallery/media_file_system_registry_unittest.cc File chrome/browser/media_gallery/media_file_system_registry_unittest.cc (right): https://codereview.chromium.org/11573048/diff/60004/chrome/browser/media_gallery/media_file_system_registry_unittest.cc#newcode304 chrome/browser/media_gallery/media_file_system_registry_unittest.cc:304: class FakeRemovableStorageNotifications On 2013/01/22 23:37:24, vandebo wrote: > On ...
7 years, 11 months ago (2013-01-23 00:28:01 UTC) #13
Greg Billock
On 2013/01/23 00:28:01, Greg Billock wrote: > https://codereview.chromium.org/11573048/diff/60004/chrome/browser/media_gallery/media_file_system_registry_unittest.cc > File chrome/browser/media_gallery/media_file_system_registry_unittest.cc > (right): > > ...
7 years, 11 months ago (2013-01-23 23:37:40 UTC) #14
vandebo (ex-Chrome)
Almost all trivial comments. https://codereview.chromium.org/11573048/diff/95047/chrome/browser/media_gallery/media_galleries_dialog_controller.cc File chrome/browser/media_gallery/media_galleries_dialog_controller.cc (right): https://codereview.chromium.org/11573048/diff/95047/chrome/browser/media_gallery/media_galleries_dialog_controller.cc#newcode32 chrome/browser/media_gallery/media_galleries_dialog_controller.cc:32: std::vector<chrome::RemovableStorageNotifications::StorageInfo> You don't need chrome:: ...
7 years, 11 months ago (2013-01-24 19:19:10 UTC) #15
Greg Billock
https://codereview.chromium.org/11573048/diff/95047/chrome/browser/media_gallery/media_galleries_dialog_controller.cc File chrome/browser/media_gallery/media_galleries_dialog_controller.cc (right): https://codereview.chromium.org/11573048/diff/95047/chrome/browser/media_gallery/media_galleries_dialog_controller.cc#newcode32 chrome/browser/media_gallery/media_galleries_dialog_controller.cc:32: std::vector<chrome::RemovableStorageNotifications::StorageInfo> On 2013/01/24 19:19:10, vandebo wrote: > You don't ...
7 years, 11 months ago (2013-01-24 20:46:03 UTC) #16
vandebo (ex-Chrome)
https://codereview.chromium.org/11573048/diff/95047/chrome/browser/system_monitor/media_storage_util.cc File chrome/browser/system_monitor/media_storage_util.cc (right): https://codereview.chromium.org/11573048/diff/95047/chrome/browser/system_monitor/media_storage_util.cc#newcode66 chrome/browser/system_monitor/media_storage_util.cc:66: for (std::vector<RemovableStorageNotifications::StorageInfo>:: On 2013/01/24 20:46:03, Greg Billock wrote: > ...
7 years, 11 months ago (2013-01-24 23:39:00 UTC) #17
Greg Billock
https://codereview.chromium.org/11573048/diff/95047/chrome/browser/system_monitor/media_storage_util.cc File chrome/browser/system_monitor/media_storage_util.cc (right): https://codereview.chromium.org/11573048/diff/95047/chrome/browser/system_monitor/media_storage_util.cc#newcode66 chrome/browser/system_monitor/media_storage_util.cc:66: for (std::vector<RemovableStorageNotifications::StorageInfo>:: On 2013/01/24 23:39:01, vandebo wrote: > On ...
7 years, 11 months ago (2013-01-25 20:01:21 UTC) #18
Greg Billock
On 2013/01/25 20:01:21, Greg Billock wrote: > https://codereview.chromium.org/11573048/diff/95047/chrome/browser/system_monitor/media_storage_util.cc > File chrome/browser/system_monitor/media_storage_util.cc (right): > > https://codereview.chromium.org/11573048/diff/95047/chrome/browser/system_monitor/media_storage_util.cc#newcode66 ...
7 years, 11 months ago (2013-01-26 00:47:51 UTC) #19
vandebo (ex-Chrome)
LGTM after the minor fix below. https://codereview.chromium.org/11573048/diff/95047/chrome/browser/system_monitor/test_removable_storage_notifications.h File chrome/browser/system_monitor/test_removable_storage_notifications.h (right): https://codereview.chromium.org/11573048/diff/95047/chrome/browser/system_monitor/test_removable_storage_notifications.h#newcode11 chrome/browser/system_monitor/test_removable_storage_notifications.h:11: namespace test { ...
7 years, 11 months ago (2013-01-26 01:00:21 UTC) #20
Lei Zhang
lgtm with nits eblow: https://chromiumcodereview.appspot.com/11573048/diff/106001/chrome/browser/media_gallery/media_file_system_registry_unittest.cc File chrome/browser/media_gallery/media_file_system_registry_unittest.cc (right): https://chromiumcodereview.appspot.com/11573048/diff/106001/chrome/browser/media_gallery/media_file_system_registry_unittest.cc#newcode358 chrome/browser/media_gallery/media_file_system_registry_unittest.cc:358: chrome::RemovableStorageNotifications::GetInstance()->ProcessAttach( nit: no need for ...
7 years, 11 months ago (2013-01-26 01:27:49 UTC) #21
Greg Billock
https://chromiumcodereview.appspot.com/11573048/diff/95047/chrome/browser/system_monitor/test_removable_storage_notifications.h File chrome/browser/system_monitor/test_removable_storage_notifications.h (right): https://chromiumcodereview.appspot.com/11573048/diff/95047/chrome/browser/system_monitor/test_removable_storage_notifications.h#newcode11 chrome/browser/system_monitor/test_removable_storage_notifications.h:11: namespace test { no worries. I'm not necessarily claiming ...
7 years, 11 months ago (2013-01-26 01:42:07 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/11573048/125001
7 years, 11 months ago (2013-01-26 01:43:54 UTC) #23
commit-bot: I haz the power
Failed to apply patch for chrome/browser/system_monitor/removable_device_notifications_window_win_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-26 01:44:01 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/11573048/130001
7 years, 10 months ago (2013-01-29 20:10:19 UTC) #25
commit-bot: I haz the power
7 years, 10 months ago (2013-01-29 22:29:11 UTC) #26
Message was sent while issue was closed.
Change committed as 179438

Powered by Google App Engine
This is Rietveld 408576698