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

Unified Diff: chrome/browser/search/instant_service_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/instant_service_factory.cc
diff --git a/chrome/browser/search/instant_service_factory.cc b/chrome/browser/search/instant_service_factory.cc
index f4b6daacb7764a08c72f1be85cf8c1c26a7fd2f0..a15629518d04198a139d61a2f8df8fc3409725eb 100644
--- a/chrome/browser/search/instant_service_factory.cc
+++ b/chrome/browser/search/instant_service_factory.cc
@@ -12,7 +12,7 @@
// static
InstantService* InstantServiceFactory::GetForProfile(Profile* profile) {
return static_cast<InstantService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -21,8 +21,9 @@ InstantServiceFactory* InstantServiceFactory::GetInstance() {
}
InstantServiceFactory::InstantServiceFactory()
- : ProfileKeyedServiceFactory("InstantService",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "InstantService",
+ BrowserContextDependencyManager::GetInstance()) {
// No dependencies.
}
@@ -34,7 +35,7 @@ content::BrowserContext* InstantServiceFactory::GetBrowserContextToUse(
return chrome::GetBrowserContextOwnInstanceInIncognito(context);
}
-ProfileKeyedService* InstantServiceFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* InstantServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new InstantService(static_cast<Profile*>(profile));
}

Powered by Google App Engine
This is Rietveld 408576698