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

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

Issue 14556015: [Media Galleries] Lazily initialize the storage monitor. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix merge Created 7 years, 7 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_galleries/media_file_system_registry.h
diff --git a/chrome/browser/media_galleries/media_file_system_registry.h b/chrome/browser/media_galleries/media_file_system_registry.h
index f12010a3277956b57c73a22464226734f5b61e12..9acdf5241106014f833f4aefbf457d9e69e908f5 100644
--- a/chrome/browser/media_galleries/media_file_system_registry.h
+++ b/chrome/browser/media_galleries/media_file_system_registry.h
@@ -82,6 +82,8 @@ class MediaFileSystemRegistry : public RemovableStorageObserver {
// MediaGalleriesPreferences directly because this method also ensures that
// currently attached removable devices are added to the preferences.
// Called on the UI thread.
+ // Note: Caller must ensure that the storage monitor is initialized before
+ // calling this method.
MediaGalleriesPreferences* GetPreferences(Profile* profile);
// RemovableStorageObserver implementation.

Powered by Google App Engine
This is Rietveld 408576698