Chromium Code Reviews

Unified Diff: chrome/browser/captive_portal/captive_portal_service_factory.cc

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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 26f49b280920ca4df31ef7471679ff0bc298bff4..474a18a59f2a39854a5dbc8b42f8746458e71427 100644
--- a/chrome/browser/captive_portal/captive_portal_service_factory.cc
+++ b/chrome/browser/captive_portal/captive_portal_service_factory.cc
@@ -31,8 +31,8 @@ CaptivePortalServiceFactory::~CaptivePortalServiceFactory() {
}
ProfileKeyedService* CaptivePortalServiceFactory::BuildServiceInstanceFor(
- Profile* profile) const {
- return new CaptivePortalService(profile);
+ content::BrowserContext* profile) const {
+ return new CaptivePortalService(static_cast<Profile*>(profile));
}
bool CaptivePortalServiceFactory::ServiceHasOwnInstanceInIncognito() const {
« no previous file with comments | « chrome/browser/captive_portal/captive_portal_service_factory.h ('k') | chrome/browser/chrome_to_mobile_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine