Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Unified Diff: ash/wm/lock_state_controller.cc

Issue 184903003: Window ownership -> WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {
« no previous file with comments | « ash/wm/caption_buttons/frame_maximize_button_unittest.cc ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698