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

Unified Diff: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.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/webui/chromeos/login/signin_screen_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
index 88971eaa06931cc1a1245d12e71b10a0fe8e1226..6275080805ff6b634135aa0a1dccebe3f52a2822 100644
--- a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
@@ -10,6 +10,7 @@
#include <vector>
#include "ash/common/system/chromeos/devicetype_utils.h"
+#include "ash/common/wm_shell.h"
#include "ash/shell.h"
#include "ash/wm/lock_state_controller.h"
#include "base/bind.h"
@@ -1299,7 +1300,7 @@ void SigninScreenHandler::HandleFocusPod(const AccountId& account_id) {
user_manager::UserManager::Get()->FindUser(account_id);
// |user| may be nullptr in kiosk mode or unit tests.
if (user && user->is_logged_in() && !user->is_active()) {
- ash::Shell::GetInstance()->session_state_delegate()->SwitchActiveUser(
+ ash::WmShell::Get()->GetSessionStateDelegate()->SwitchActiveUser(
account_id);
} else {
SetUserInputMethod(account_id.GetUserEmail(), ime_state_.get());

Powered by Google App Engine
This is Rietveld 408576698