Index: chrome/browser/extensions/api/developer_private/developer_private_api_factory.cc |
diff --git a/chrome/browser/extensions/api/developer_private/developer_private_api_factory.cc b/chrome/browser/extensions/api/developer_private/developer_private_api_factory.cc |
index fd125439a24b4165a7f5b449b7c5a9c0eeb1fd8d..f365430fa69770d8104fb8e8b274006e2a38acb2 100644 |
--- a/chrome/browser/extensions/api/developer_private/developer_private_api_factory.cc |
+++ b/chrome/browser/extensions/api/developer_private/developer_private_api_factory.cc |
@@ -16,7 +16,7 @@ namespace extensions { |
DeveloperPrivateAPI* DeveloperPrivateAPIFactory::GetForProfile( |
Profile* profile) { |
return static_cast<DeveloperPrivateAPI*>( |
- GetInstance()->GetServiceForProfile(profile, true)); |
+ GetInstance()->GetServiceForBrowserContext(profile, true)); |
} |
// static |
@@ -25,15 +25,16 @@ DeveloperPrivateAPIFactory* DeveloperPrivateAPIFactory::GetInstance() { |
} |
DeveloperPrivateAPIFactory::DeveloperPrivateAPIFactory() |
- : ProfileKeyedServiceFactory("DeveloperPrivateAPI", |
- ProfileDependencyManager::GetInstance()) { |
+ : BrowserContextKeyedServiceFactory( |
+ "DeveloperPrivateAPI", |
+ BrowserContextDependencyManager::GetInstance()) { |
DependsOn(ExtensionSystemFactory::GetInstance()); |
} |
DeveloperPrivateAPIFactory::~DeveloperPrivateAPIFactory() { |
} |
-ProfileKeyedService* DeveloperPrivateAPIFactory::BuildServiceInstanceFor( |
+BrowserContextKeyedService* DeveloperPrivateAPIFactory::BuildServiceInstanceFor( |
content::BrowserContext* profile) const { |
return new DeveloperPrivateAPI(static_cast<Profile*>(profile)); |
} |
@@ -43,7 +44,7 @@ content::BrowserContext* DeveloperPrivateAPIFactory::GetBrowserContextToUse( |
return chrome::GetBrowserContextRedirectedInIncognito(context); |
} |
-bool DeveloperPrivateAPIFactory::ServiceIsCreatedWithProfile() const { |
+bool DeveloperPrivateAPIFactory::ServiceIsCreatedWithBrowserContext() const { |
return true; |
} |