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

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

Issue 25539003: Media Galleries API: Fix MediaGalleriesPreferences initialization for fresh profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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_galleries_preferences.h
diff --git a/chrome/browser/media_galleries/media_galleries_preferences.h b/chrome/browser/media_galleries/media_galleries_preferences.h
index e04806bbab758ae0b07eb2c2d943e3e1d4cc07a8..7acfeed6e664099c976f615f23acad55e1a43c62 100644
--- a/chrome/browser/media_galleries/media_galleries_preferences.h
+++ b/chrome/browser/media_galleries/media_galleries_preferences.h
@@ -240,8 +240,8 @@ class MediaGalleriesPreferences : public BrowserContextKeyedService,
void OnInitializationCallbackReturned();
void FinishInitialization();
- // Populates the default galleries if this is a fresh profile.
- void AddDefaultGalleriesIfFreshProfile();
+ // Populates the default galleries. Call only on fresh profiles.
+ void AddDefaultGalleries();
// This is a hack - Some devices (iTunes, Picasa) are singletons in that only
// one instance of that type is supported at a time. As such, the device id
@@ -254,6 +254,8 @@ class MediaGalleriesPreferences : public BrowserContextKeyedService,
// device id. It returns true if the device id is up to date.
bool UpdateDeviceIDForSingletonType(const std::string& device_id);
+ void OnStorageMonitorInit(bool add_default_galleries);
+
// Handle an iPhoto, iTunes, or Picasa finder returning a device ID to us.
void OnFinderDeviceID(const std::string& device_id);

Powered by Google App Engine
This is Rietveld 408576698