Index: ash/common/wm/container_finder.cc |
diff --git a/ash/common/wm/container_finder.cc b/ash/common/wm/container_finder.cc |
index 95207ec36931a2c615ba6555ee1a3292ab13685f..f55f29c9bcd7d5bed5d1b422f343f53065b68e90 100644 |
--- a/ash/common/wm/container_finder.cc |
+++ b/ash/common/wm/container_finder.cc |
@@ -4,7 +4,7 @@ |
#include "ash/common/wm/container_finder.h" |
-#include "ash/common/session/session_state_delegate.h" |
+#include "ash/common/session/session_controller.h" |
#include "ash/common/wm/always_on_top_controller.h" |
#include "ash/common/wm/root_window_finder.h" |
#include "ash/common/wm/window_state.h" |
@@ -39,7 +39,7 @@ WmWindow* GetSystemModalContainer(WmWindow* root, WmWindow* window) { |
// all modal windows are placed into the normal modal container. |
// In case of missing transient parent (it could happen for alerts from |
// background pages) assume that the window belongs to user session. |
- if (!window->GetShell()->GetSessionStateDelegate()->IsUserSessionBlocked() || |
+ if (!WmShell::Get()->session_controller()->IsUserSessionBlocked() || |
!window->GetTransientParent()) { |
return root->GetChildByShellWindowId(kShellWindowId_SystemModalContainer); |
} |