diff options
Diffstat (limited to 'chrome/browser/themes/theme_service_factory.cc')
-rw-r--r-- | chrome/browser/themes/theme_service_factory.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/themes/theme_service_factory.cc b/chrome/browser/themes/theme_service_factory.cc index 3a7e8ec..054d56c 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; } |