| Index: chrome/browser/media_gallery/media_file_system_registry_unittest.cc
|
| diff --git a/chrome/browser/media_gallery/media_file_system_registry_unittest.cc b/chrome/browser/media_gallery/media_file_system_registry_unittest.cc
|
| index f9586b1a7b096f1813eb4df8bcbb52650f326301..5be2a7d89c6c3ba0f532ae0a1fa67630ba79df9d 100644
|
| --- a/chrome/browser/media_gallery/media_file_system_registry_unittest.cc
|
| +++ b/chrome/browser/media_gallery/media_file_system_registry_unittest.cc
|
| @@ -528,15 +528,16 @@ std::string MediaFileSystemRegistryTest::AttachDevice(
|
| std::string device_id = MediaStorageUtil::MakeDeviceId(type, unique_id);
|
| DCHECK(MediaStorageUtil::IsRemovableDevice(device_id));
|
| string16 name = location.LossyDisplayName();
|
| - base::SystemMonitor::Get()->ProcessRemovableStorageAttached(device_id, name,
|
| - location.value());
|
| + RemovableStorageNotifications::GetInstance()->
|
| + ProcessRemovableStorageAttached(device_id, name, location.value());
|
| MessageLoop::current()->RunUntilIdle();
|
| return device_id;
|
| }
|
|
|
| void MediaFileSystemRegistryTest::DetachDevice(const std::string& device_id) {
|
| DCHECK(MediaStorageUtil::IsRemovableDevice(device_id));
|
| - base::SystemMonitor::Get()->ProcessRemovableStorageDetached(device_id);
|
| + RemovableStorageNotifications::GetInstance()->
|
| + ProcessRemovableStorageDetached(device_id);
|
| MessageLoop::current()->RunUntilIdle();
|
| }
|
|
|
|
|