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)); |
} |