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

Unified Diff: chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc

Issue 11573048: [Media Galleries] Move RemovableStorageInfo notifications to chrome namespace (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to head Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc
diff --git a/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc b/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc
index b270fad6a5104d53cc21f0fafd6feb3abd8f8256..7eb23bd5a032879a3f41cc75bf4a0caf0528ab96 100644
--- a/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc
+++ b/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_event_router.cc
@@ -37,15 +37,17 @@ MediaGalleriesPrivateEventRouter::MediaGalleriesPrivateEventRouter(
: profile_(profile) {
CHECK(profile_);
- base::SystemMonitor* system_monitor = base::SystemMonitor::Get();
- if (system_monitor)
- system_monitor->AddDevicesChangedObserver(this);
+ chrome::RemovableStorageNotifications* notifications =
+ chrome::RemovableStorageNotifications::GetInstance();
+ if (notifications)
+ notifications->AddRemovableStorageObserver(this);
}
MediaGalleriesPrivateEventRouter::~MediaGalleriesPrivateEventRouter() {
- base::SystemMonitor* system_monitor = base::SystemMonitor::Get();
- if (system_monitor)
- system_monitor->RemoveDevicesChangedObserver(this);
+ chrome::RemovableStorageNotifications* notifications =
+ chrome::RemovableStorageNotifications::GetInstance();
+ if (notifications)
+ notifications->RemoveRemovableStorageObserver(this);
}
void MediaGalleriesPrivateEventRouter::OnRemovableStorageAttached(

Powered by Google App Engine
This is Rietveld 408576698