| Index: chrome/browser/chromeos/system/automatic_reboot_manager.h
|
| diff --git a/chrome/browser/chromeos/system/automatic_reboot_manager.h b/chrome/browser/chromeos/system/automatic_reboot_manager.h
|
| index 638c9ace6e306fc0a0b25fd80e783fcadcb753ff..5ecf8d6bada4a2f87c0901fec014ce1a3f843a7d 100644
|
| --- a/chrome/browser/chromeos/system/automatic_reboot_manager.h
|
| +++ b/chrome/browser/chromeos/system/automatic_reboot_manager.h
|
| @@ -13,6 +13,7 @@
|
| #include "base/prefs/pref_change_registrar.h"
|
| #include "base/time/time.h"
|
| #include "base/timer/timer.h"
|
| +#include "chrome/browser/chromeos/system/automatic_reboot_manager_observer.h"
|
| #include "chromeos/dbus/power_manager_client.h"
|
| #include "chromeos/dbus/update_engine_client.h"
|
| #include "content/public/browser/notification_observer.h"
|
| @@ -28,8 +29,6 @@ class TickClock;
|
| namespace chromeos {
|
| namespace system {
|
|
|
| -class AutomaticRebootManagerObserver;
|
| -
|
| // Schedules and executes automatic reboots.
|
| //
|
| // Automatic reboots may be scheduled for any number of reasons. Currently, the
|
| @@ -93,6 +92,11 @@ class AutomaticRebootManager : public PowerManagerClient::Observer,
|
| explicit AutomaticRebootManager(scoped_ptr<base::TickClock> clock);
|
| virtual ~AutomaticRebootManager();
|
|
|
| + AutomaticRebootManagerObserver::Reason reboot_reason() const {
|
| + return reboot_reason_;
|
| + }
|
| + bool reboot_requested() const { return reboot_requested_; }
|
| +
|
| void AddObserver(AutomaticRebootManagerObserver* observer);
|
| void RemoveObserver(AutomaticRebootManagerObserver* observer);
|
|
|
| @@ -157,6 +161,9 @@ class AutomaticRebootManager : public PowerManagerClient::Observer,
|
| bool have_update_reboot_needed_time_;
|
| base::TimeTicks update_reboot_needed_time_;
|
|
|
| + // The reason for the reboot request. Updated whenever a reboot is scheduled.
|
| + AutomaticRebootManagerObserver::Reason reboot_reason_;
|
| +
|
| // Whether a reboot has been requested.
|
| bool reboot_requested_;
|
|
|
|
|