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

Unified Diff: chrome/browser/ui/ash/multi_user/multi_user_window_manager.cc

Issue 2111443002: mash: Migrate SessionStateDelegate access to WmShell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. 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/ui/ash/multi_user/multi_user_window_manager.cc
diff --git a/chrome/browser/ui/ash/multi_user/multi_user_window_manager.cc b/chrome/browser/ui/ash/multi_user/multi_user_window_manager.cc
index ee399f8d9b1137ad97abe04ce62133555025a978..ea34fc03f23e028169e622b53f4c3cf99f5c1a76 100644
--- a/chrome/browser/ui/ash/multi_user/multi_user_window_manager.cc
+++ b/chrome/browser/ui/ash/multi_user/multi_user_window_manager.cc
@@ -6,6 +6,7 @@
#include "ash/common/ash_switches.h"
#include "ash/common/session/session_state_delegate.h"
+#include "ash/common/wm_shell.h"
#include "ash/multi_profile_uma.h"
#include "ash/shell.h"
#include "ash/shell_delegate.h"
@@ -41,8 +42,8 @@ MultiUserWindowManager* MultiUserWindowManager::CreateInstance() {
if (!g_instance &&
ash::Shell::GetInstance()->delegate()->IsMultiProfilesEnabled()) {
MultiUserWindowManagerChromeOS* manager =
- new MultiUserWindowManagerChromeOS(ash::Shell::GetInstance()
- ->session_state_delegate()
+ new MultiUserWindowManagerChromeOS(ash::WmShell::Get()
+ ->GetSessionStateDelegate()
->GetUserInfo(0)
->GetAccountId());
g_instance = manager;

Powered by Google App Engine
This is Rietveld 408576698