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

Unified Diff: chrome/browser/themes/theme_service_factory.cc

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style 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/themes/theme_service_factory.cc
diff --git a/chrome/browser/themes/theme_service_factory.cc b/chrome/browser/themes/theme_service_factory.cc
index 3a7e8ec0e6d30e5d16fabaf0d7c1bdddc78d5191..054d56c34301768798bc8c9d43082fc2b7816366 100644
--- a/chrome/browser/themes/theme_service_factory.cc
+++ b/chrome/browser/themes/theme_service_factory.cc
@@ -21,7 +21,7 @@
// static
ThemeService* ThemeServiceFactory::GetForProfile(Profile* profile) {
return static_cast<ThemeService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -40,12 +40,13 @@ ThemeServiceFactory* ThemeServiceFactory::GetInstance() {
}
ThemeServiceFactory::ThemeServiceFactory()
- : ProfileKeyedServiceFactory("ThemeService",
- ProfileDependencyManager::GetInstance()) {}
+ : BrowserContextKeyedServiceFactory(
+ "ThemeService",
+ BrowserContextDependencyManager::GetInstance()) {}
ThemeServiceFactory::~ThemeServiceFactory() {}
-ProfileKeyedService* ThemeServiceFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* ThemeServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
ThemeService* provider = NULL;
#if defined(TOOLKIT_GTK)
@@ -93,6 +94,6 @@ content::BrowserContext* ThemeServiceFactory::GetBrowserContextToUse(
return chrome::GetBrowserContextRedirectedInIncognito(context);
}
-bool ThemeServiceFactory::ServiceIsCreatedWithProfile() const {
+bool ThemeServiceFactory::ServiceIsCreatedWithBrowserContext() const {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698