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(); |
} |