| 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 7421a81a3db7655eee6cfa31f968f293e3fc9446..2c60701bb81ce6f56f657150f4a19a944956368d 100644
|
| --- a/chrome/browser/chromeos/app_mode/kiosk_app_update_service.h
|
| +++ b/chrome/browser/chromeos/app_mode/kiosk_app_update_service.h
|
| @@ -11,6 +11,7 @@
|
| #include "base/compiler_specific.h"
|
| #include "base/memory/singleton.h"
|
| #include "base/timer.h"
|
| +#include "chrome/browser/chromeos/system/automatic_reboot_manager_observer.h"
|
| #include "chrome/browser/extensions/update_observer.h"
|
| #include "components/browser_context_keyed_service/browser_context_keyed_service.h"
|
| #include "components/browser_context_keyed_service/browser_context_keyed_service_factory.h"
|
| @@ -21,7 +22,8 @@ namespace chromeos {
|
|
|
| // This class enforces automatic restart on app and Chrome updates in app mode.
|
| class KioskAppUpdateService : public BrowserContextKeyedService,
|
| - public extensions::UpdateObserver {
|
| + public extensions::UpdateObserver,
|
| + public system::AutomaticRebootManagerObserver {
|
| public:
|
| explicit KioskAppUpdateService(Profile* profile);
|
| virtual ~KioskAppUpdateService();
|
| @@ -33,14 +35,16 @@ class KioskAppUpdateService : public BrowserContextKeyedService,
|
| void StartRestartTimer();
|
| void ForceRestart();
|
|
|
| + // BrowserContextKeyedService overrides:
|
| + virtual void Shutdown() OVERRIDE;
|
| +
|
| // extensions::UpdateObserver overrides:
|
| virtual void OnAppUpdateAvailable(const std::string& app_id) OVERRIDE;
|
| virtual void OnChromeUpdateAvailable() OVERRIDE {}
|
|
|
| - // BrowserContextKeyedService overrides:
|
| - virtual void Shutdown() OVERRIDE;
|
| + // system::AutomaticRebootManagerObserver overrides:
|
| + virtual void OnRebootScheduled(Reason reason) OVERRIDE;
|
|
|
| - private:
|
| Profile* profile_;
|
| std::string app_id_;
|
|
|
|
|