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

Unified Diff: chrome/browser/media_gallery/media_file_system_registry.h

Issue 11573048: [Media Galleries] Move RemovableStorageInfo notifications to chrome namespace (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing up tests Created 7 years, 11 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.h
diff --git a/chrome/browser/media_gallery/media_file_system_registry.h b/chrome/browser/media_gallery/media_file_system_registry.h
index 4d5de38d76e40efe6e46f25a77892632965c125c..05415f2bd29159b89cb69ea2406a1a49092aafec 100644
--- a/chrome/browser/media_gallery/media_file_system_registry.h
+++ b/chrome/browser/media_gallery/media_file_system_registry.h
@@ -17,9 +17,9 @@
#include "base/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/prefs/public/pref_change_registrar.h"
-#include "base/system_monitor/system_monitor.h"
#include "chrome/browser/media_gallery/media_galleries_preferences.h"
#include "chrome/browser/media_gallery/transient_device_ids.h"
+#include "chrome/browser/system_monitor/removable_storage_observer.h"
#include "webkit/fileapi/media/mtp_device_file_system_config.h"
#if defined(SUPPORT_MTP_DEVICE_FILESYSTEM)
@@ -69,8 +69,7 @@ struct MediaFileSystemInfo {
typedef base::Callback<void(const std::vector<MediaFileSystemInfo>&)>
MediaFileSystemsCallback;
-class MediaFileSystemRegistry
- : public base::SystemMonitor::DevicesChangedObserver {
+class MediaFileSystemRegistry : public RemovableStorageObserver {
public:
MediaFileSystemRegistry();
virtual ~MediaFileSystemRegistry();
@@ -89,12 +88,11 @@ class MediaFileSystemRegistry
// Called on the UI thread.
MediaGalleriesPreferences* GetPreferences(Profile* profile);
- // base::SystemMonitor::DevicesChangedObserver implementation.
+ // RemovableStorageObserver implementation.
virtual void OnRemovableStorageAttached(
- const std::string& id,
- const string16& name,
- const FilePath::StringType& location) OVERRIDE;
- virtual void OnRemovableStorageDetached(const std::string& id) OVERRIDE;
+ const RemovableStorageNotifications::StorageInfo& info) OVERRIDE;
+ virtual void OnRemovableStorageDetached(
+ const RemovableStorageNotifications::StorageInfo& info) OVERRIDE;
size_t GetExtensionHostCountForTests() const;

Powered by Google App Engine
This is Rietveld 408576698