Index: ash/system/chromeos/system_clock_observer.cc |
diff --git a/ash/system/chromeos/system_clock_observer.cc b/ash/system/chromeos/system_clock_observer.cc |
index d154d5eda2e6101b9603473ac5c77193aae5f0b7..5ed6330d7d6b0cb30fe5da2abc48ddeb1259f1ca 100644 |
--- a/ash/system/chromeos/system_clock_observer.cc |
+++ b/ash/system/chromeos/system_clock_observer.cc |
@@ -14,6 +14,8 @@ SystemClockObserver::SystemClockObserver() { |
chromeos::DBusThreadManager::Get()->GetSystemClockClient() |
->AddObserver(this); |
chromeos::system::TimezoneSettings::GetInstance()->AddObserver(this); |
+ can_set_time_ = |
+ chromeos::DBusThreadManager::Get()->GetSystemClockClient()->CanSetTime(); |
} |
SystemClockObserver::~SystemClockObserver() { |
@@ -23,8 +25,13 @@ SystemClockObserver::~SystemClockObserver() { |
} |
void SystemClockObserver::SystemClockUpdated() { |
+ Shell::GetInstance()->system_tray_notifier()->NotifySystemClockTimeUpdated(); |
+} |
+ |
+void SystemClockObserver::SystemClockCanSetTimeChanged(bool can_set_time) { |
+ can_set_time_ = can_set_time; |
Shell::GetInstance()->system_tray_notifier() |
- ->NotifySystemClockTimeUpdated(); |
+ ->NotifySystemClockCanSetTimeChanged(can_set_time_); |
} |
void SystemClockObserver::TimezoneChanged(const icu::TimeZone& timezone) { |