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

Unified Diff: chrome/browser/extensions/api/discovery/suggested_links_registry_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/discovery/suggested_links_registry_factory.cc
diff --git a/chrome/browser/extensions/api/discovery/suggested_links_registry_factory.cc b/chrome/browser/extensions/api/discovery/suggested_links_registry_factory.cc
index 33ae3dae55aca6fd101efb1f161946110c311ba7..f392999c66a4334947f54d18b0d9840d8c53c86f 100644
--- a/chrome/browser/extensions/api/discovery/suggested_links_registry_factory.cc
+++ b/chrome/browser/extensions/api/discovery/suggested_links_registry_factory.cc
@@ -16,7 +16,7 @@ namespace extensions {
SuggestedLinksRegistry* SuggestedLinksRegistryFactory::GetForProfile(
Profile* profile) {
return static_cast<SuggestedLinksRegistry*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -24,20 +24,22 @@ SuggestedLinksRegistryFactory* SuggestedLinksRegistryFactory::GetInstance() {
return Singleton<SuggestedLinksRegistryFactory>::get();
}
-bool SuggestedLinksRegistryFactory::ServiceIsCreatedWithProfile() const {
+bool SuggestedLinksRegistryFactory::ServiceIsCreatedWithBrowserContext() const {
return true;
}
SuggestedLinksRegistryFactory::SuggestedLinksRegistryFactory()
- : ProfileKeyedServiceFactory("SuggestedLinksRegistry",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "SuggestedLinksRegistry",
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(ExtensionSystemFactory::GetInstance());
}
SuggestedLinksRegistryFactory::~SuggestedLinksRegistryFactory() {
}
-ProfileKeyedService* SuggestedLinksRegistryFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService*
+SuggestedLinksRegistryFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new SuggestedLinksRegistry();
}

Powered by Google App Engine
This is Rietveld 408576698