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

Unified Diff: chrome/browser/search_engines/template_url_service_factory.h

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 years, 8 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 13bd98b6616b29ef9f0c1a636d8688432d7d31ec..f4bbb7e622e0d3008087e8b9184ea287c4a7541b 100644
--- a/chrome/browser/search_engines/template_url_service_factory.h
+++ b/chrome/browser/search_engines/template_url_service_factory.h
@@ -20,7 +20,8 @@ class TemplateURLServiceFactory : public ProfileKeyedServiceFactory {
static TemplateURLServiceFactory* GetInstance();
- static ProfileKeyedService* BuildInstanceFor(Profile* profile);
+ static ProfileKeyedService* BuildInstanceFor(
+ content::BrowserContext* profile);
private:
friend struct DefaultSingletonTraits<TemplateURLServiceFactory>;
@@ -30,12 +31,12 @@ class TemplateURLServiceFactory : public ProfileKeyedServiceFactory {
// ProfileKeyedServiceFactory:
virtual ProfileKeyedService* BuildServiceInstanceFor(
- Profile* profile) const OVERRIDE;
+ content::BrowserContext* profile) const OVERRIDE;
virtual void RegisterUserPrefs(PrefRegistrySyncable* registry) OVERRIDE;
virtual bool ServiceRedirectedInIncognito() const OVERRIDE;
virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
- virtual void ProfileShutdown(Profile* profile) OVERRIDE;
- virtual void ProfileDestroyed(Profile* profile) OVERRIDE;
+ virtual void ProfileShutdown(content::BrowserContext* profile) OVERRIDE;
+ virtual void ProfileDestroyed(content::BrowserContext* profile) OVERRIDE;
};
#endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698