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

Unified Diff: chrome/browser/captive_portal/captive_portal_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/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));
}

Powered by Google App Engine
This is Rietveld 408576698