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

Unified Diff: chrome/browser/search_engines/template_url_fetcher_factory.cc

Issue 367413003: No chrome dependencies in TemplateURLFetcher and TemplateURLParser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 5 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 30a07a443c622250f0ba9a135211001fd31f48bc..40f832f314b0f8de226ac773ae30e960408e085d 100644
--- a/chrome/browser/search_engines/template_url_fetcher_factory.cc
+++ b/chrome/browser/search_engines/template_url_fetcher_factory.cc
@@ -41,7 +41,9 @@ TemplateURLFetcherFactory::~TemplateURLFetcherFactory() {
KeyedService* TemplateURLFetcherFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
- return new TemplateURLFetcher(static_cast<Profile*>(profile));
+ return new TemplateURLFetcher(
+ TemplateURLServiceFactory::GetForProfile(static_cast<Profile*>(profile)),
+ profile->GetRequestContext());
}
content::BrowserContext* TemplateURLFetcherFactory::GetBrowserContextToUse(

Powered by Google App Engine
This is Rietveld 408576698