| Index: ash/root_window_controller.cc
|
| diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
|
| index 7039d56fee50c49e4b8da5a3cf5ecdd682fab72e..635ceba59248fb24428c040b12fe22b6ff301873 100644
|
| --- a/ash/root_window_controller.cc
|
| +++ b/ash/root_window_controller.cc
|
| @@ -258,13 +258,9 @@ RootWindowController::GetSystemModalLayoutManager(aura::Window* window) {
|
| container = GetContainer(kShellWindowId_SystemModalContainer);
|
| }
|
| } else {
|
| - user::LoginStatus login = Shell::GetInstance()->system_tray_delegate() ?
|
| - Shell::GetInstance()->system_tray_delegate()->GetUserLoginStatus() :
|
| - user::LOGGED_IN_NONE;
|
| - int modal_window_id = (login == user::LOGGED_IN_LOCKED ||
|
| - login == user::LOGGED_IN_NONE) ?
|
| - kShellWindowId_LockSystemModalContainer :
|
| - kShellWindowId_SystemModalContainer;
|
| + int modal_window_id = Shell::GetInstance()->session_state_delegate()
|
| + ->IsUserSessionBlocked() ? kShellWindowId_LockSystemModalContainer :
|
| + kShellWindowId_SystemModalContainer;
|
| container = GetContainer(modal_window_id);
|
| }
|
| return container ? static_cast<SystemModalContainerLayoutManager*>(
|
|
|