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

Unified Diff: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc

Issue 2118593002: mash: Migrate ShellDelegate ownership and access to WmShell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 5 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/ui/ash/system_tray_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
index 6ebf22d1550e94e5626530b1c58f0b7d6a55faeb..1ba70edb392be3f5ab9605b464811595407a4abe 100644
--- a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
@@ -16,6 +16,7 @@
#include "ash/common/login_status.h"
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/session/session_state_observer.h"
+#include "ash/common/shell_delegate.h"
#include "ash/common/shell_window_ids.h"
#include "ash/common/system/chromeos/bluetooth/bluetooth_observer.h"
#include "ash/common/system/chromeos/power/power_status.h"
@@ -32,7 +33,6 @@
#include "ash/common/wm_shell.h"
#include "ash/desktop_background/desktop_background_controller.h"
#include "ash/shell.h"
-#include "ash/shell_delegate.h"
#include "ash/system/tray/system_tray.h"
#include "ash/wm/lock_state_controller.h"
#include "base/bind_helpers.h"
@@ -547,9 +547,8 @@ void SystemTrayDelegateChromeOS::ShowEnterpriseInfo() {
}
void SystemTrayDelegateChromeOS::ShowUserLogin() {
- ash::Shell* shell = ash::Shell::GetInstance();
ash::WmShell* wm_shell = ash::WmShell::Get();
- if (!shell->delegate()->IsMultiProfilesEnabled())
+ if (!wm_shell->delegate()->IsMultiProfilesEnabled())
return;
// Only regular non-supervised users could add other users to current session.

Powered by Google App Engine
This is Rietveld 408576698