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

Unified Diff: ash/common/system/chromeos/session/logout_button_tray.cc

Issue 2775973002: Promotes more accessors from WmShell to Shell (Closed)
Patch Set: feedback 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/chromeos/session/logout_button_tray.cc
diff --git a/ash/common/system/chromeos/session/logout_button_tray.cc b/ash/common/system/chromeos/session/logout_button_tray.cc
index 25bf4626a96442bae5638990a8f31eaf3c4bfd67..2994b473c61d3e27dcc863e1a81717eda80c2349 100644
--- a/ash/common/system/chromeos/session/logout_button_tray.cc
+++ b/ash/common/system/chromeos/session/logout_button_tray.cc
@@ -14,7 +14,6 @@
#include "ash/common/system/tray/tray_constants.h"
#include "ash/common/system/tray/tray_utils.h"
#include "ash/common/system/user/login_status.h"
-#include "ash/common/wm_shell.h"
#include "ash/public/cpp/shelf_types.h"
#include "ash/resources/grit/ash_resources.h"
#include "ash/resources/vector_icons/vector_icons.h"
@@ -53,11 +52,11 @@ LogoutButtonTray::LogoutButtonTray(WmShelf* wm_shelf)
// by itself, no separator is needed on its right side.
set_separator_visibility(false);
tray_container()->AddChildView(button_);
- WmShell::Get()->system_tray_notifier()->AddLogoutButtonObserver(this);
+ Shell::Get()->system_tray_notifier()->AddLogoutButtonObserver(this);
}
LogoutButtonTray::~LogoutButtonTray() {
- WmShell::Get()->system_tray_notifier()->RemoveLogoutButtonObserver(this);
+ Shell::Get()->system_tray_notifier()->RemoveLogoutButtonObserver(this);
}
void LogoutButtonTray::SetShelfAlignment(ShelfAlignment alignment) {

Powered by Google App Engine
This is Rietveld 408576698