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

Unified Diff: ash/common/system/tray/system_tray.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/tiles/tiles_default_view.cc ('k') | ash/common/system/tray/system_tray_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/system_tray.cc
diff --git a/ash/common/system/tray/system_tray.cc b/ash/common/system/tray/system_tray.cc
index a7d301ef762d9b76a8f5967bea23b75c76119b72..fa71896f95a43a8c93ba7be0c24180d51b42f1de 100644
--- a/ash/common/system/tray/system_tray.cc
+++ b/ash/common/system/tray/system_tray.cc
@@ -129,7 +129,7 @@ class SystemBubbleWrapper {
bool is_persistent) {
DCHECK(anchor);
LoginStatus login_status =
- WmShell::Get()->system_tray_delegate()->GetUserLoginStatus();
+ Shell::Get()->system_tray_delegate()->GetUserLoginStatus();
bubble_->InitView(anchor, login_status, init_params);
bubble_->bubble_view()->set_anchor_view_insets(anchor_insets);
bubble_wrapper_.reset(new TrayBubbleWrapper(tray, bubble_->bubble_view()));
@@ -328,7 +328,7 @@ void SystemTray::AddTrayItem(std::unique_ptr<SystemTrayItem> item) {
SystemTrayItem* item_ptr = item.get();
items_.push_back(std::move(item));
- SystemTrayDelegate* delegate = WmShell::Get()->system_tray_delegate();
+ SystemTrayDelegate* delegate = Shell::Get()->system_tray_delegate();
views::View* tray_item =
item_ptr->CreateTrayView(delegate->GetUserLoginStatus());
item_ptr->UpdateAfterShelfAlignmentChange(shelf_alignment());
@@ -478,7 +478,7 @@ void SystemTray::ShowItems(const std::vector<SystemTrayItem*>& items,
bool persistent) {
// No system tray bubbles in kiosk mode.
SystemTrayDelegate* system_tray_delegate =
- WmShell::Get()->system_tray_delegate();
+ Shell::Get()->system_tray_delegate();
if (system_tray_delegate->GetUserLoginStatus() == LoginStatus::KIOSK_APP ||
system_tray_delegate->GetUserLoginStatus() ==
LoginStatus::ARC_KIOSK_APP) {
@@ -516,7 +516,7 @@ void SystemTray::ShowItems(const std::vector<SystemTrayItem*>& items,
// The menu width is fixed, and it is a per language setting.
menu_width = std::max(
kTrayMenuMinimumWidth,
- WmShell::Get()->system_tray_delegate()->GetSystemTrayMenuWidth());
+ Shell::Get()->system_tray_delegate()->GetSystemTrayMenuWidth());
}
TrayBubbleView::InitParams init_params(GetAnchorAlignment(), menu_width,
@@ -589,7 +589,7 @@ void SystemTray::UpdateWebNotifications() {
base::string16 SystemTray::GetAccessibleTimeString(
const base::Time& now) const {
base::HourClockType hour_type =
- WmShell::Get()->system_tray_controller()->hour_clock_type();
+ Shell::Get()->system_tray_controller()->hour_clock_type();
return base::TimeFormatTimeOfDayWithHourClockType(now, hour_type,
base::kKeepAmPm);
}
« no previous file with comments | « ash/common/system/tiles/tiles_default_view.cc ('k') | ash/common/system/tray/system_tray_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698