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