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

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

Issue 2064953002: mash: Migrate tray date view to //ash/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trayviews
Patch Set: review feedback Created 4 years, 6 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
« no previous file with comments | « ash/system/chromeos/power/power_event_observer.cc ('k') | ash/system/date/clock_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5ed6330d7d6b0cb30fe5da2abc48ddeb1259f1ca..28b6119c2a19112f82865f01680f79b2e7f117fd 100644
--- a/ash/system/chromeos/system_clock_observer.cc
+++ b/ash/system/chromeos/system_clock_observer.cc
@@ -4,8 +4,8 @@
#include "ash/system/chromeos/system_clock_observer.h"
-#include "ash/shell.h"
-#include "ash/system/tray/system_tray_notifier.h"
+#include "ash/common/system/tray/wm_system_tray_notifier.h"
+#include "ash/common/wm_shell.h"
#include "chromeos/dbus/dbus_thread_manager.h"
namespace ash {
@@ -25,17 +25,17 @@ SystemClockObserver::~SystemClockObserver() {
}
void SystemClockObserver::SystemClockUpdated() {
- Shell::GetInstance()->system_tray_notifier()->NotifySystemClockTimeUpdated();
+ WmShell::Get()->system_tray_notifier()->NotifySystemClockTimeUpdated();
}
void SystemClockObserver::SystemClockCanSetTimeChanged(bool can_set_time) {
can_set_time_ = can_set_time;
- Shell::GetInstance()->system_tray_notifier()
- ->NotifySystemClockCanSetTimeChanged(can_set_time_);
+ WmShell::Get()->system_tray_notifier()->NotifySystemClockCanSetTimeChanged(
+ can_set_time_);
}
void SystemClockObserver::TimezoneChanged(const icu::TimeZone& timezone) {
- Shell::GetInstance()->system_tray_notifier()->NotifyRefreshClock();
+ WmShell::Get()->system_tray_notifier()->NotifyRefreshClock();
}
} // namespace ash
« no previous file with comments | « ash/system/chromeos/power/power_event_observer.cc ('k') | ash/system/date/clock_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698