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

Unified Diff: chrome/browser/chromeos/app_mode/kiosk_app_update_service.h

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.h
diff --git a/chrome/browser/chromeos/app_mode/kiosk_app_update_service.h b/chrome/browser/chromeos/app_mode/kiosk_app_update_service.h
index 1fd9dd170dfbad99b7eb7cec4a9a4c7892b8fb50..7421a81a3db7655eee6cfa31f968f293e3fc9446 100644
--- a/chrome/browser/chromeos/app_mode/kiosk_app_update_service.h
+++ b/chrome/browser/chromeos/app_mode/kiosk_app_update_service.h
@@ -20,7 +20,7 @@ class Profile;
namespace chromeos {
// This class enforces automatic restart on app and Chrome updates in app mode.
-class KioskAppUpdateService : public ProfileKeyedService,
+class KioskAppUpdateService : public BrowserContextKeyedService,
public extensions::UpdateObserver {
public:
explicit KioskAppUpdateService(Profile* profile);
@@ -37,7 +37,7 @@ class KioskAppUpdateService : public ProfileKeyedService,
virtual void OnAppUpdateAvailable(const std::string& app_id) OVERRIDE;
virtual void OnChromeUpdateAvailable() OVERRIDE {}
- // ProfileKeyedService overrides:
+ // BrowserContextKeyedService overrides:
virtual void Shutdown() OVERRIDE;
private:
@@ -52,7 +52,7 @@ class KioskAppUpdateService : public ProfileKeyedService,
// Singleton that owns all KioskAppUpdateServices and associates them with
// profiles.
-class KioskAppUpdateServiceFactory: public ProfileKeyedServiceFactory {
+class KioskAppUpdateServiceFactory : public BrowserContextKeyedServiceFactory {
public:
// Returns the KioskAppUpdateService for |profile|, creating it if it is not
// yet created.
@@ -67,8 +67,8 @@ class KioskAppUpdateServiceFactory: public ProfileKeyedServiceFactory {
KioskAppUpdateServiceFactory();
virtual ~KioskAppUpdateServiceFactory();
- // ProfileKeyedServiceFactory overrides:
- virtual ProfileKeyedService* BuildServiceInstanceFor(
+ // BrowserContextKeyedServiceFactory overrides:
+ virtual BrowserContextKeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
};

Powered by Google App Engine
This is Rietveld 408576698