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

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

Issue 11304022: [Media Gallery] Add existing attached devices to the prefs in time for media galleries dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 8 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/media_gallery/media_file_system_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 45f3163d0b4e665e26968a21e35dfe9015718a92..3e0afb0afbf3c3ecbef7792939e2076226ad8d4c 100644
--- a/chrome/browser/media_gallery/media_file_system_registry.h
+++ b/chrome/browser/media_gallery/media_file_system_registry.h
@@ -90,6 +90,11 @@ class MediaFileSystemRegistry
const extensions::Extension* extension,
const MediaFileSystemsCallback& callback);
+ // Returns the initialized media galleries preferences for the specified
+ // |profile|. Registers all the media devices found in system monitor as
vandebo (ex-Chrome) 2012/10/29 21:15:17 nit: |profile|. This method should be used instea
kmadhusu 2012/10/29 21:23:35 Done.
+ // auto-detected galleries if required. Called on the UI thread.
+ MediaGalleriesPreferences* GetProfilePreferences(Profile* profile);
vandebo (ex-Chrome) 2012/10/29 21:15:17 GetPreferences
kmadhusu 2012/10/29 21:23:35 Done.
+
// base::SystemMonitor::DevicesChangedObserver implementation.
virtual void OnRemovableStorageAttached(
const std::string& id, const string16& name,
@@ -129,10 +134,6 @@ class MediaFileSystemRegistry
const FilePath::StringType& device_location);
#endif
- // Register all the media devices found in system monitor as auto-detected
- // galleries for the passed |preferences|.
- void AddAttachedMediaDeviceGalleries(MediaGalleriesPreferences* preferences);
-
void OnExtensionGalleriesHostEmpty(Profile* profile,
const std::string& extension_id);
@@ -152,4 +153,5 @@ class MediaFileSystemRegistry
} // namespace chrome
+
#endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_FILE_SYSTEM_REGISTRY_H_
« no previous file with comments | « no previous file | chrome/browser/media_gallery/media_file_system_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698