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..00c7751a8d52267ea959bb907a9e6cc0392bb68c 100644 |
--- a/ash/system/chromeos/system_clock_observer.cc |
+++ b/ash/system/chromeos/system_clock_observer.cc |
@@ -27,8 +27,18 @@ void SystemClockObserver::SystemClockUpdated() { |
->NotifySystemClockTimeUpdated(); |
} |
+void SystemClockObserver::SystemClockCanSetTimeChanged(bool can_set_time) { |
+ Shell::GetInstance()->system_tray_notifier() |
+ ->NotifySystemClockCanSetTimeChanged(can_set_time); |
+} |
+ |
void SystemClockObserver::TimezoneChanged(const icu::TimeZone& timezone) { |
Shell::GetInstance()->system_tray_notifier()->NotifyRefreshClock(); |
} |
+bool SystemClockObserver::SystemClockCanSetTime() { |
+ return chromeos::DBusThreadManager::Get() |
+ ->GetSystemClockClient()->CanSetTime(); |
+} |
+ |
} // namespace ash |