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

Unified Diff: ash/common/wm/window_positioner.cc

Issue 2194353002: mash: Migrate ScopedTargetRootWindow to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reflow comment Created 4 years, 4 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/common/wm/window_positioner.cc
diff --git a/ash/common/wm/window_positioner.cc b/ash/common/wm/window_positioner.cc
index dcea7bff096d701842645957879b85e64bd73782..fb91208bad4a2a660c994c486f382590c06606d5 100644
--- a/ash/common/wm/window_positioner.cc
+++ b/ash/common/wm/window_positioner.cc
@@ -217,7 +217,7 @@ void WindowPositioner::GetBoundsAndShowStateForNewWindow(
gfx::Rect* bounds_in_out,
ui::WindowShowState* show_state_out) {
// Always open new window in the target display.
- WmWindow* target = WmShell::Get()->GetRootWindowForNewWindows();
+ WmWindow* target = WmShell::Get()->root_window_for_new_windows();
WmWindow* top_window = GetReferenceWindow(target, nullptr, nullptr);
// Our window should not have any impact if we are already on top.

Powered by Google App Engine
This is Rietveld 408576698