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..674c3c1d08f8e4b2e08ec986887b0ed0070977a1 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,16 @@ 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 +55,8 @@ BackgroundContentsServiceFactory::GetBrowserContextToUse( |
return chrome::GetBrowserContextOwnInstanceInIncognito(context); |
} |
-bool BackgroundContentsServiceFactory::ServiceIsCreatedWithProfile() const { |
+bool |
+BackgroundContentsServiceFactory::ServiceIsCreatedWithBrowserContext() const { |
return true; |
} |