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

Unified Diff: chrome/browser/media_gallery/media_file_system_registry_unittest.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/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();
}

Powered by Google App Engine
This is Rietveld 408576698