Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1118)

Unified Diff: chrome/browser/extensions/api/autotest_private/autotest_private_api_factory.cc

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698