Index: chrome/browser/captive_portal/captive_portal_service_factory.cc |
diff --git a/chrome/browser/captive_portal/captive_portal_service_factory.cc b/chrome/browser/captive_portal/captive_portal_service_factory.cc |
index c677e7299f857c8bb5452aa0ee931679b82862b8..53b4483c0563117b9a6de1cd33b6a33db8fe19c0 100644 |
--- a/chrome/browser/captive_portal/captive_portal_service_factory.cc |
+++ b/chrome/browser/captive_portal/captive_portal_service_factory.cc |
@@ -15,7 +15,7 @@ namespace captive_portal { |
CaptivePortalService* CaptivePortalServiceFactory::GetForProfile( |
Profile* profile) { |
return static_cast<CaptivePortalService*>( |
- GetInstance()->GetServiceForProfile(profile, true)); |
+ GetInstance()->GetServiceForBrowserContext(profile, true)); |
} |
// static |
@@ -24,14 +24,16 @@ CaptivePortalServiceFactory* CaptivePortalServiceFactory::GetInstance() { |
} |
CaptivePortalServiceFactory::CaptivePortalServiceFactory() |
- : ProfileKeyedServiceFactory("CaptivePortalService", |
- ProfileDependencyManager::GetInstance()) { |
+ : BrowserContextKeyedServiceFactory( |
+ "CaptivePortalService", |
+ BrowserContextDependencyManager::GetInstance()) { |
} |
CaptivePortalServiceFactory::~CaptivePortalServiceFactory() { |
} |
-ProfileKeyedService* CaptivePortalServiceFactory::BuildServiceInstanceFor( |
+BrowserContextKeyedService* |
+CaptivePortalServiceFactory::BuildServiceInstanceFor( |
content::BrowserContext* profile) const { |
return new CaptivePortalService(static_cast<Profile*>(profile)); |
} |