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

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

Issue 1929023002: Refactors WindowResizers to use ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/date/tray_date.cc
diff --git a/ash/system/date/tray_date.cc b/ash/system/date/tray_date.cc
index 052a1aed582e41780aa05f9badbac15fbb4da2cb..9b7f5bcb894b5d3c94877f0238544b4c1aa62be9 100644
--- a/ash/system/date/tray_date.cc
+++ b/ash/system/date/tray_date.cc
@@ -11,6 +11,7 @@
#include "ash/system/tray/system_tray.h"
#include "ash/system/tray/system_tray_notifier.h"
#include "ash/system/tray/tray_item_view.h"
+#include "ash/wm/common/shelf/wm_shelf_util.h"
#if defined(OS_CHROMEOS)
#include "ash/system/chromeos/system_clock_observer.h"
@@ -95,8 +96,9 @@ void TrayDate::UpdateAfterLoginStatusChange(user::LoginStatus status) {
void TrayDate::UpdateAfterShelfAlignmentChange(wm::ShelfAlignment alignment) {
if (time_tray_) {
- ClockLayout clock_layout =
- IsHorizontalAlignment(alignment) ? HORIZONTAL_CLOCK : VERTICAL_CLOCK;
+ ClockLayout clock_layout = wm::IsHorizontalAlignment(alignment)
+ ? HORIZONTAL_CLOCK
+ : VERTICAL_CLOCK;
time_tray_->UpdateClockLayout(clock_layout);
}
}

Powered by Google App Engine
This is Rietveld 408576698