Index: ash/common/wm/window_cycle_controller.cc |
diff --git a/ash/common/wm/window_cycle_controller.cc b/ash/common/wm/window_cycle_controller.cc |
index 7b6cfe5d5edb6a7ed8c063d5cfda20f6136c7f6c..b3cd51caf66ac34e8d2f1ae92f89ab9bfe36fe77 100644 |
--- a/ash/common/wm/window_cycle_controller.cc |
+++ b/ash/common/wm/window_cycle_controller.cc |
@@ -39,7 +39,7 @@ WindowCycleController::~WindowCycleController() {} |
bool WindowCycleController::CanCycle() { |
// Prevent window cycling if the screen is locked or a modal dialog is open. |
WmShell* wm_shell = WmShell::Get(); |
- return !wm_shell->session_controller()->IsScreenLocked() && |
+ return !Shell::Get()->session_controller()->IsScreenLocked() && |
!wm_shell->IsSystemModalWindowOpen() && !wm_shell->IsPinned(); |
} |