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

Unified Diff: ash/common/system/date/date_view.cc

Issue 2761063002: Move more from WmShell to Shell (Closed)
Patch Set: merge Created 3 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
« no previous file with comments | « ash/common/system/date/date_default_view.cc ('k') | ash/common/system/ime/tray_ime_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/date/date_view.cc
diff --git a/ash/common/system/date/date_view.cc b/ash/common/system/date/date_view.cc
index 9aa1eb51bb9ceffacd98372a96b3727d7f40a5c7..6a095173e72427b2f8faadc833a4b338e6511cfd 100644
--- a/ash/common/system/date/date_view.cc
+++ b/ash/common/system/date/date_view.cc
@@ -10,7 +10,7 @@
#include "ash/common/system/tray/tray_popup_item_style.h"
#include "ash/common/system/tray/tray_popup_utils.h"
#include "ash/common/system/tray/tray_utils.h"
-#include "ash/common/wm_shell.h"
+#include "ash/shell.h"
#include "ash/strings/grit/ash_strings.h"
#include "base/i18n/rtl.h"
#include "base/i18n/time_formatting.h"
@@ -116,7 +116,7 @@ void BaseDateTimeView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
BaseDateTimeView::BaseDateTimeView(SystemTrayItem* owner)
: ActionableView(owner, TrayPopupInkDropStyle::INSET_BOUNDS),
- hour_type_(WmShell::Get()->system_tray_controller()->hour_clock_type()) {
+ hour_type_(Shell::Get()->system_tray_controller()->hour_clock_type()) {
SetTimer(base::Time::Now());
SetFocusBehavior(FocusBehavior::NEVER);
}
@@ -213,7 +213,7 @@ void DateView::SetAction(DateAction action) {
}
void DateView::UpdateTimeFormat() {
- hour_type_ = WmShell::Get()->system_tray_controller()->hour_clock_type();
+ hour_type_ = Shell::Get()->system_tray_controller()->hour_clock_type();
UpdateText();
}
@@ -240,9 +240,9 @@ bool DateView::PerformAction(const ui::Event& event) {
if (action_ == DateAction::NONE)
return false;
if (action_ == DateAction::SHOW_DATE_SETTINGS)
- WmShell::Get()->system_tray_controller()->ShowDateSettings();
+ Shell::Get()->system_tray_controller()->ShowDateSettings();
else if (action_ == DateAction::SET_SYSTEM_TIME)
- WmShell::Get()->system_tray_controller()->ShowSetTimeDialog();
+ Shell::Get()->system_tray_controller()->ShowSetTimeDialog();
else
return false;
CloseSystemBubble();
@@ -282,7 +282,7 @@ TimeView::TimeView(ClockLayout clock_layout) : BaseDateTimeView(nullptr) {
TimeView::~TimeView() {}
void TimeView::UpdateTimeFormat() {
- hour_type_ = WmShell::Get()->system_tray_controller()->hour_clock_type();
+ hour_type_ = Shell::Get()->system_tray_controller()->hour_clock_type();
UpdateText();
}
« no previous file with comments | « ash/common/system/date/date_default_view.cc ('k') | ash/common/system/ime/tray_ime_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698