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

Unified Diff: chrome/browser/search_engines/template_url_service_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/search_engines/template_url_service_factory.h
diff --git a/chrome/browser/search_engines/template_url_service_factory.h b/chrome/browser/search_engines/template_url_service_factory.h
index 81912de8a8de8dc54f326ce09ec15e9708ddc817..db462630cf813299089a8efd07b85cc9646d427e 100644
--- a/chrome/browser/search_engines/template_url_service_factory.h
+++ b/chrome/browser/search_engines/template_url_service_factory.h
@@ -13,13 +13,13 @@ class TemplateURLService;
// Singleton that owns all TemplateURLService and associates them with
// Profiles.
-class TemplateURLServiceFactory : public ProfileKeyedServiceFactory {
+class TemplateURLServiceFactory : public BrowserContextKeyedServiceFactory {
public:
static TemplateURLService* GetForProfile(Profile* profile);
static TemplateURLServiceFactory* GetInstance();
- static ProfileKeyedService* BuildInstanceFor(
+ static BrowserContextKeyedService* BuildInstanceFor(
content::BrowserContext* profile);
private:
@@ -28,16 +28,18 @@ class TemplateURLServiceFactory : public ProfileKeyedServiceFactory {
TemplateURLServiceFactory();
virtual ~TemplateURLServiceFactory();
- // ProfileKeyedServiceFactory:
- virtual ProfileKeyedService* BuildServiceInstanceFor(
+ // BrowserContextKeyedServiceFactory:
+ virtual BrowserContextKeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
virtual void RegisterUserPrefs(
user_prefs::PrefRegistrySyncable* registry) OVERRIDE;
virtual content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const OVERRIDE;
virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
- virtual void ProfileShutdown(content::BrowserContext* profile) OVERRIDE;
- virtual void ProfileDestroyed(content::BrowserContext* profile) OVERRIDE;
+ virtual void BrowserContextShutdown(
+ content::BrowserContext* profile) OVERRIDE;
+ virtual void BrowserContextDestroyed(
+ content::BrowserContext* profile) OVERRIDE;
};
#endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698