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

Unified Diff: chrome/browser/extensions/api/developer_private/developer_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/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;
}

Powered by Google App Engine
This is Rietveld 408576698