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

Unified Diff: ash/common/system/user/tray_user.cc

Issue 2761063002: Move more from WmShell to Shell (Closed)
Patch Set: cleanup 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
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 65379215aa98c15b956c319576d3be1e62ab305c..92117e5cfb8ea7e09b267d0610c0efa5e29664ac 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) {

Powered by Google App Engine
This is Rietveld 408576698