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

Unified Diff: chrome/browser/search/instant_service_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/instant_service_factory.cc
diff --git a/chrome/browser/search/instant_service_factory.cc b/chrome/browser/search/instant_service_factory.cc
index ebb68a9f296487c157d1af9f18ff8c2682a89876..513fbc945eb5df73559d7f488be9704cad20d464 100644
--- a/chrome/browser/search/instant_service_factory.cc
+++ b/chrome/browser/search/instant_service_factory.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/search/instant_service_factory.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
#include "chrome/browser/search/instant_service.h"
@@ -32,6 +33,6 @@ bool InstantServiceFactory::ServiceHasOwnInstanceInIncognito() const {
}
ProfileKeyedService* InstantServiceFactory::BuildServiceInstanceFor(
- Profile* profile) const {
- return new InstantService(profile);
+ content::BrowserContext* profile) const {
+ return new InstantService(static_cast<Profile*>(profile));
}
« no previous file with comments | « chrome/browser/search/instant_service_factory.h ('k') | chrome/browser/search_engines/template_url_fetcher_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698