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

Unified Diff: ash/display/cursor_window_controller.cc

Issue 2911393002: Nix GetRootWindowController, use RootWindowController::ForWindow. (Closed)
Patch Set: Sync and rebase. Created 3 years, 7 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/display/cursor_window_controller.cc
diff --git a/ash/display/cursor_window_controller.cc b/ash/display/cursor_window_controller.cc
index 06b2c125108a19ccdcb165e17cd5fb5c705ee97f..477c6d47f0709bef2840356dc1124c30f97fe037 100644
--- a/ash/display/cursor_window_controller.cc
+++ b/ash/display/cursor_window_controller.cc
@@ -162,7 +162,7 @@ void CursorWindowController::SetDisplay(const display::Display& display) {
if (!root_window)
return;
- SetContainer(GetRootWindowController(root_window)
+ SetContainer(RootWindowController::ForWindow(root_window)
->GetContainer(kShellWindowId_MouseCursorContainer));
SetBoundsInScreen(display.bounds());
// Updates the hot point based on the current display.

Powered by Google App Engine
This is Rietveld 408576698