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

Unified Diff: chrome/browser/chromeos/power/power_button_observer.cc

Issue 2058173002: mash: Move SystemTrayDelegate ownership to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: chrome/browser/chromeos/power/power_button_observer.cc
diff --git a/chrome/browser/chromeos/power/power_button_observer.cc b/chrome/browser/chromeos/power/power_button_observer.cc
index 1ae37bcca8c68770b19a45cb248cb63b65c372ea..fa3aaa433178c3ad3d6981bd8c365a430fa3b725 100644
--- a/chrome/browser/chromeos/power/power_button_observer.cc
+++ b/chrome/browser/chromeos/power/power_button_observer.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/chromeos/power/power_button_observer.h"
#include "ash/common/system/tray/system_tray_delegate.h"
+#include "ash/common/wm_shell.h"
#include "ash/shell.h"
#include "ash/system/user/login_status.h"
#include "ash/wm/power_button_controller.h"
@@ -24,10 +25,9 @@ namespace chromeos {
namespace {
ash::LoginStatus GetCurrentLoginStatus() {
- if (!ash::Shell::GetInstance()->system_tray_delegate())
+ if (!ash::WmShell::Get()->system_tray_delegate())
msw 2016/06/10 18:48:21 optional nit: flip conditional and swap returns
James Cook 2016/06/10 20:20:32 Done.
return ash::LoginStatus::NOT_LOGGED_IN;
- return ash::Shell::GetInstance()->system_tray_delegate()->
- GetUserLoginStatus();
+ return ash::WmShell::Get()->system_tray_delegate()->GetUserLoginStatus();
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698