| 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;
|
| }
|
|
|