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

Unified Diff: chrome/browser/extensions/api/discovery/suggested_links_registry_factory.h

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.h
diff --git a/chrome/browser/extensions/api/discovery/suggested_links_registry_factory.h b/chrome/browser/extensions/api/discovery/suggested_links_registry_factory.h
index 3ec5413c2847e6bbdcc65082d132519122c5c1e7..1637b601c223614f79d74502b9f5d122ff7c58f6 100644
--- a/chrome/browser/extensions/api/discovery/suggested_links_registry_factory.h
+++ b/chrome/browser/extensions/api/discovery/suggested_links_registry_factory.h
@@ -15,14 +15,14 @@ namespace extensions {
class SuggestedLinksRegistry;
// Singleton that associate SuggestedLinksRegistry objects with Profiles.
-class SuggestedLinksRegistryFactory : public ProfileKeyedServiceFactory {
+class SuggestedLinksRegistryFactory : public BrowserContextKeyedServiceFactory {
public:
static SuggestedLinksRegistry* GetForProfile(Profile* profile);
static SuggestedLinksRegistryFactory* GetInstance();
- // Overridden from ProfileKeyedBaseFactory:
- virtual bool ServiceIsCreatedWithProfile() const OVERRIDE;
+ // Overridden from BrowserContextKeyedBaseFactory:
+ virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
private:
friend struct DefaultSingletonTraits<SuggestedLinksRegistryFactory>;
@@ -30,8 +30,8 @@ class SuggestedLinksRegistryFactory : public ProfileKeyedServiceFactory {
SuggestedLinksRegistryFactory();
virtual ~SuggestedLinksRegistryFactory();
- // ProfileKeyedServiceFactory:
- virtual ProfileKeyedService* BuildServiceInstanceFor(
+ // BrowserContextKeyedServiceFactory:
+ virtual BrowserContextKeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
virtual content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698