Index: ash/wm/lock_state_controller.cc |
diff --git a/ash/wm/lock_state_controller.cc b/ash/wm/lock_state_controller.cc |
index 2d4b84ba7dc7c9f9c628f914d98bcd29013f3036..9897d40e4e0b528cc42c78b7899b8e100cbcf5a6 100644 |
--- a/ash/wm/lock_state_controller.cc |
+++ b/ash/wm/lock_state_controller.cc |
@@ -167,12 +167,13 @@ LockStateController::LockStateController() |
shutdown_after_lock_(false), |
animating_lock_(false), |
can_cancel_lock_animation_(false) { |
- Shell::GetPrimaryRootWindow()->GetDispatcher()->AddRootWindowObserver(this); |
+ Shell::GetPrimaryRootWindow()->GetHost()->dispatcher()->AddRootWindowObserver( |
+ this); |
} |
LockStateController::~LockStateController() { |
- Shell::GetPrimaryRootWindow()->GetDispatcher()->RemoveRootWindowObserver( |
- this); |
+ Shell::GetPrimaryRootWindow()->GetHost()->dispatcher()-> |
+ RemoveRootWindowObserver(this); |
} |
void LockStateController::SetDelegate(LockStateControllerDelegate* delegate) { |