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

Unified Diff: chrome/browser/media_galleries/media_galleries_preferences_factory.cc

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 years, 8 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_factory.cc
diff --git a/chrome/browser/media_galleries/media_galleries_preferences_factory.cc b/chrome/browser/media_galleries/media_galleries_preferences_factory.cc
index 5de97737bec4b915a876781ea0b5948ba0641797..660510efdee507e16d02e69c37eba790acb1dfdf 100644
--- a/chrome/browser/media_galleries/media_galleries_preferences_factory.cc
+++ b/chrome/browser/media_galleries/media_galleries_preferences_factory.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/media_galleries/media_galleries_preferences_factory.h"
#include "chrome/browser/media_galleries/media_galleries_preferences.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
#include "components/user_prefs/pref_registry_syncable.h"
@@ -28,8 +29,8 @@ MediaGalleriesPreferencesFactory::MediaGalleriesPreferencesFactory()
MediaGalleriesPreferencesFactory::~MediaGalleriesPreferencesFactory() {}
ProfileKeyedService* MediaGalleriesPreferencesFactory::BuildServiceInstanceFor(
- Profile* profile) const {
- return new chrome::MediaGalleriesPreferences(profile);
+ content::BrowserContext* profile) const {
+ return new chrome::MediaGalleriesPreferences(static_cast<Profile*>(profile));
}
void MediaGalleriesPreferencesFactory::RegisterUserPrefs(

Powered by Google App Engine
This is Rietveld 408576698