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

Unified Diff: chrome/browser/search_engines/template_url_fetcher_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/search_engines/template_url_fetcher_factory.cc
diff --git a/chrome/browser/search_engines/template_url_fetcher_factory.cc b/chrome/browser/search_engines/template_url_fetcher_factory.cc
index 256b1984ffdbc07c358ef235823edf90218147d5..1e0849e33e372cf6f4ccdc89bfd1af8e32f35a0d 100644
--- a/chrome/browser/search_engines/template_url_fetcher_factory.cc
+++ b/chrome/browser/search_engines/template_url_fetcher_factory.cc
@@ -14,7 +14,7 @@
TemplateURLFetcher* TemplateURLFetcherFactory::GetForProfile(
Profile* profile) {
return static_cast<TemplateURLFetcher*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -25,20 +25,21 @@ TemplateURLFetcherFactory* TemplateURLFetcherFactory::GetInstance() {
// static
void TemplateURLFetcherFactory::ShutdownForProfile(Profile* profile) {
TemplateURLFetcherFactory* factory = GetInstance();
- factory->ProfileShutdown(profile);
- factory->ProfileDestroyed(profile);
+ factory->BrowserContextShutdown(profile);
+ factory->BrowserContextDestroyed(profile);
}
TemplateURLFetcherFactory::TemplateURLFetcherFactory()
- : ProfileKeyedServiceFactory("TemplateURLFetcher",
- ProfileDependencyManager::GetInstance()) {
- DependsOn(TemplateURLServiceFactory::GetInstance());
+ : BrowserContextKeyedServiceFactory(
+ "TemplateURLFetcher",
+ BrowserContextDependencyManager::GetInstance()) {
+ DependsOn(TemplateURLServiceFactory::GetInstance());
}
TemplateURLFetcherFactory::~TemplateURLFetcherFactory() {
}
-ProfileKeyedService* TemplateURLFetcherFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* TemplateURLFetcherFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new TemplateURLFetcher(static_cast<Profile*>(profile));
}

Powered by Google App Engine
This is Rietveld 408576698