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

Unified Diff: chrome/browser/media_gallery/media_galleries_dialog_controller.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: Typedef, init observer 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_galleries_dialog_controller.h
diff --git a/chrome/browser/media_gallery/media_galleries_dialog_controller.h b/chrome/browser/media_gallery/media_galleries_dialog_controller.h
index 02a3f3a8d17030af8fb73f6ebcd34ee0e538c4e3..a78c56ed587d786cf05f8f13d4a0cdfa0e640973 100644
--- a/chrome/browser/media_gallery/media_galleries_dialog_controller.h
+++ b/chrome/browser/media_gallery/media_galleries_dialog_controller.h
@@ -11,8 +11,8 @@
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "base/string16.h"
-#include "base/system_monitor/system_monitor.h"
#include "chrome/browser/media_gallery/media_galleries_preferences.h"
+#include "chrome/browser/system_monitor/removable_storage_observer.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/shell_dialogs/select_file_dialog.h"
@@ -49,7 +49,7 @@ class MediaGalleriesDialog {
// the dialog and owns itself.
class MediaGalleriesDialogController
: public ui::SelectFileDialog::Listener,
- public base::SystemMonitor::DevicesChangedObserver {
+ public RemovableStorageObserver {
public:
// A fancy pair.
struct GalleryPermission {
@@ -101,12 +101,11 @@ class MediaGalleriesDialogController
int index,
void* params) OVERRIDE;
- // 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;
// Populates |known_galleries_|.
void InitializePermissions();

Powered by Google App Engine
This is Rietveld 408576698