Index: chrome/browser/background/background_contents_service_factory.cc |
diff --git a/chrome/browser/background/background_contents_service_factory.cc b/chrome/browser/background/background_contents_service_factory.cc |
index 44287bc6e1faaa09c2039b022fc1bf1119afe162..50e9cc3a51cced0c9dd47f4be7153a589a6188a8 100644 |
--- a/chrome/browser/background/background_contents_service_factory.cc |
+++ b/chrome/browser/background/background_contents_service_factory.cc |
@@ -17,7 +17,7 @@ |
BackgroundContentsService* BackgroundContentsServiceFactory::GetForProfile( |
Profile* profile) { |
return static_cast<BackgroundContentsService*>( |
- GetInstance()->GetServiceForProfile(profile, true)); |
+ GetInstance()->GetServiceForBrowserContext(profile, true)); |
} |
// static |
@@ -27,14 +27,14 @@ BackgroundContentsServiceFactory* BackgroundContentsServiceFactory:: |
} |
BackgroundContentsServiceFactory::BackgroundContentsServiceFactory() |
- : ProfileKeyedServiceFactory("BackgroundContentsService", |
- ProfileDependencyManager::GetInstance()) { |
+ : BrowserContextKeyedServiceFactory("BackgroundContentsService", |
+ BrowserContextDependencyManager::GetInstance()) { |
} |
BackgroundContentsServiceFactory::~BackgroundContentsServiceFactory() { |
} |
-ProfileKeyedService* BackgroundContentsServiceFactory::BuildServiceInstanceFor( |
+BrowserContextKeyedService* BackgroundContentsServiceFactory::BuildServiceInstanceFor( |
content::BrowserContext* profile) const { |
return new BackgroundContentsService(static_cast<Profile*>(profile), |
CommandLine::ForCurrentProcess()); |
@@ -53,7 +53,7 @@ BackgroundContentsServiceFactory::GetBrowserContextToUse( |
return chrome::GetBrowserContextOwnInstanceInIncognito(context); |
} |
-bool BackgroundContentsServiceFactory::ServiceIsCreatedWithProfile() const { |
+bool BackgroundContentsServiceFactory::ServiceIsCreatedWithBrowserContext() const { |
return true; |
} |