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

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

Issue 2739553005: Moves maintaining root_window_for_new_windows_ to Shell (Closed)
Patch Set: cleanup Created 3 years, 9 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..09efa079a3303d184b0871c34ff51178a019500d 100644
--- a/ash/common/wm/window_positioner.cc
+++ b/ash/common/wm/window_positioner.cc
@@ -10,6 +10,7 @@
#include "ash/common/wm/wm_screen_util.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
+#include "ash/shell.h"
#include "ui/compositor/layer.h"
#include "ui/display/display.h"
#include "ui/display/screen.h"
@@ -217,7 +218,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 = Shell::GetInstance()->GetRootWindowForNewWindows();
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