Index: ash/wm/stacking_controller.cc |
diff --git a/ash/wm/stacking_controller.cc b/ash/wm/stacking_controller.cc |
index 24f38d5f4b82d4905f9be5db6458fa468007a7a3..026924c2350bee8e268c25ce52e4d2ddfb15d9f3 100644 |
--- a/ash/wm/stacking_controller.cc |
+++ b/ash/wm/stacking_controller.cc |
@@ -129,8 +129,7 @@ aura::Window* StackingController::GetSystemModalContainer( |
// background pages) assume that the window belongs to user session. |
SessionStateDelegate* session_state_delegate = |
Shell::GetInstance()->session_state_delegate(); |
- if ((!session_state_delegate->IsScreenLocked() && |
- session_state_delegate->IsActiveUserSessionStarted()) || |
+ if (!session_state_delegate->IsUserSessionBlocked() || |
!window->transient_parent()) { |
return GetContainerById(root, |
internal::kShellWindowId_SystemModalContainer); |