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

Unified Diff: chrome/browser/media_gallery/media_file_system_registry_unittest.cc

Issue 12147002: Add a receiver interface to RemovableStorageNotifications. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merging Created 7 years, 10 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 b49c8657f4810cd08c7dd057233e5489765f8579..bcf02eb2ead8805ea59f10af3d2cb593a84597a7 100644
--- a/chrome/browser/media_gallery/media_file_system_registry_unittest.cc
+++ b/chrome/browser/media_gallery/media_file_system_registry_unittest.cc
@@ -360,15 +360,16 @@ class MediaFileSystemRegistryTest : public ChromeRenderViewHostTestHarness {
std::vector<MediaFileSystemInfo> GetAutoAddedGalleries(
ProfileState* profile_state);
+ // TODO(gbillock): Rework these once windows-specific code is gone.
void ProcessAttach(const std::string& id,
const string16& name,
const base::FilePath::StringType& location) {
- RemovableStorageNotifications::GetInstance()->ProcessAttach(
+ RemovableStorageNotifications::GetInstance()->receiver()->ProcessAttach(
id, name, location);
}
void ProcessDetach(const std::string& id) {
- RemovableStorageNotifications::GetInstance()->ProcessDetach(id);
+ RemovableStorageNotifications::GetInstance()->receiver()->ProcessDetach(id);
}
protected:
@@ -394,6 +395,7 @@ class MediaFileSystemRegistryTest : public ChromeRenderViewHostTestHarness {
content::TestBrowserThread ui_thread_;
content::TestBrowserThread file_thread_;
+// TODO(gbillock): Eliminate windows-specific code from this test.
#if defined(OS_WIN)
scoped_ptr<test::TestRemovableDeviceNotificationsWindowWin> window_;
#else

Powered by Google App Engine
This is Rietveld 408576698