| 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(
|
|
|