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

Unified Diff: ash/system/date/tray_date.cc

Issue 12564007: Hook up system clock update dbus signal to chrome and ash tray ui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser_tests by adding MockSystemClockClient. Created 7 years, 9 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/date/tray_date.cc
diff --git a/ash/system/date/tray_date.cc b/ash/system/date/tray_date.cc
index c603b2683ae0febc15d173f2517c388cfacb0550..4b25bbc3adedaefe7a0c21f30d21030bc1de34a6 100644
--- a/ash/system/date/tray_date.cc
+++ b/ash/system/date/tray_date.cc
@@ -188,6 +188,11 @@ void TrayDate::OnDateFormatChanged() {
time_tray_->UpdateTimeFormat();
}
+void TrayDate::OnSystemClockTimeUpdated() {
+ if (time_tray_)
+ time_tray_->UpdateTimeFormat();
+}
+
void TrayDate::Refresh() {
if (time_tray_)
time_tray_->UpdateText();

Powered by Google App Engine
This is Rietveld 408576698