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

Unified Diff: ash/common/system/user/tray_user.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/update/tray_update_unittest.cc ('k') | ash/common/system/user/user_card_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/user/tray_user.cc
diff --git a/ash/common/system/user/tray_user.cc b/ash/common/system/user/tray_user.cc
index 0bc7efea6ac44467f97cd89fcbfa77f742198eeb..bc4813180efaad1f777afb04e63420a1a9a84883 100644
--- a/ash/common/system/user/tray_user.cc
+++ b/ash/common/system/user/tray_user.cc
@@ -15,6 +15,7 @@
#include "ash/common/system/user/rounded_image_view.h"
#include "ash/common/system/user/user_view.h"
#include "ash/common/wm_shell.h"
+#include "ash/shell.h"
#include "ash/strings/grit/ash_strings.h"
#include "base/logging.h"
#include "base/strings/string16.h"
@@ -119,7 +120,7 @@ void TrayUser::UpdateAfterLoginStatusChange(LoginStatus status) {
return;
bool need_label = false;
bool need_avatar = false;
- SystemTrayDelegate* delegate = WmShell::Get()->system_tray_delegate();
+ SystemTrayDelegate* delegate = Shell::Get()->system_tray_delegate();
if (delegate->IsUserSupervised())
need_label = true;
switch (status) {
@@ -218,8 +219,7 @@ void TrayUser::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) {
}
void TrayUser::OnUserUpdate() {
- UpdateAvatarImage(
- WmShell::Get()->system_tray_delegate()->GetUserLoginStatus());
+ UpdateAvatarImage(Shell::Get()->system_tray_delegate()->GetUserLoginStatus());
}
void TrayUser::OnUserAddedToSession() {
@@ -233,8 +233,7 @@ void TrayUser::OnUserAddedToSession() {
UpdateLayoutOfItem();
// Update the user item.
- UpdateAvatarImage(
- WmShell::Get()->system_tray_delegate()->GetUserLoginStatus());
+ UpdateAvatarImage(Shell::Get()->system_tray_delegate()->GetUserLoginStatus());
}
void TrayUser::UpdateAvatarImage(LoginStatus status) {
« no previous file with comments | « ash/common/system/update/tray_update_unittest.cc ('k') | ash/common/system/user/user_card_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698