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

Unified Diff: ash/system/chromeos/system_clock_observer.cc

Issue 247663003: Date and Time dialog for when the clock isn't synced. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Observe system clock Created 6 years, 8 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: 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();
stevenjb 2014/04/25 22:53:31 nit: I think it would be a little nicer / more cle
michaelpg 2014/04/25 23:50:29 Done.
+}
+
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698