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

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

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_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 80113bdb7e4ab3fce6b457856c5ab9b261a1b7e5..4543a147b6113e58c772d338085d6a568cf82916 100644
--- a/chrome/browser/search_engines/template_url_fetcher_factory.cc
+++ b/chrome/browser/search_engines/template_url_fetcher_factory.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/search_engines/template_url_fetcher_factory.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
#include "chrome/browser/search_engines/template_url_fetcher.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
@@ -37,8 +38,8 @@ TemplateURLFetcherFactory::~TemplateURLFetcherFactory() {
}
ProfileKeyedService* TemplateURLFetcherFactory::BuildServiceInstanceFor(
- Profile* profile) const {
- return new TemplateURLFetcher(profile);
+ content::BrowserContext* profile) const {
+ return new TemplateURLFetcher(static_cast<Profile*>(profile));
}
bool TemplateURLFetcherFactory::ServiceRedirectedInIncognito() const {

Powered by Google App Engine
This is Rietveld 408576698