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

Unified Diff: chrome/browser/chromeos/app_mode/kiosk_app_update_service.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/chromeos/app_mode/kiosk_app_update_service.cc
diff --git a/chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc b/chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc
index 1f9424d326576220c51fab522b57f255af077631..0b789f9062236c74140938f249477d0a1dde24d0 100644
--- a/chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc
+++ b/chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc
@@ -64,8 +64,9 @@ void KioskAppUpdateService::ForceRestart() {
}
KioskAppUpdateServiceFactory::KioskAppUpdateServiceFactory()
- : ProfileKeyedServiceFactory("KioskAppUpdateService",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "KioskAppUpdateService",
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(extensions::ExtensionSystemFactory::GetInstance());
}
@@ -81,7 +82,7 @@ KioskAppUpdateService* KioskAppUpdateServiceFactory::GetForProfile(
return NULL;
return static_cast<KioskAppUpdateService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -89,7 +90,8 @@ KioskAppUpdateServiceFactory* KioskAppUpdateServiceFactory::GetInstance() {
return Singleton<KioskAppUpdateServiceFactory>::get();
}
-ProfileKeyedService* KioskAppUpdateServiceFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService*
+KioskAppUpdateServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new KioskAppUpdateService(static_cast<Profile*>(profile));
}

Powered by Google App Engine
This is Rietveld 408576698