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

Unified Diff: ash/system/tray/system_tray_notifier.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/tray/system_tray_notifier.cc
diff --git a/ash/system/tray/system_tray_notifier.cc b/ash/system/tray/system_tray_notifier.cc
index 889791712ab511020bf509d98ef721172dbfe837..e174e0d977198a88f2eb4548824d750869bbd1eb 100644
--- a/ash/system/tray/system_tray_notifier.cc
+++ b/ash/system/tray/system_tray_notifier.cc
@@ -228,6 +228,12 @@ void SystemTrayNotifier::NotifyDateFormatChanged() {
OnDateFormatChanged());
}
+void SystemTrayNotifier::NotifySystemClockTimeUpdated() {
+ FOR_EACH_OBSERVER(ClockObserver,
+ clock_observers_,
+ OnSystemClockTimeUpdated());
+}
+
void SystemTrayNotifier::NotifyRefreshDrive(DriveOperationStatusList& list) {
FOR_EACH_OBSERVER(DriveObserver,
drive_observers_,

Powered by Google App Engine
This is Rietveld 408576698