summaryrefslogtreecommitdiffstats
path: root/chrome/browser/search/instant_service_factory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/search/instant_service_factory.cc')
-rw-r--r--chrome/browser/search/instant_service_factory.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/search/instant_service_factory.cc b/chrome/browser/search/instant_service_factory.cc
index f4b6daa..a156295 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));
}