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

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

Issue 2739553005: Moves maintaining root_window_for_new_windows_ to Shell (Closed)
Patch Set: remove ash:: 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
« no previous file with comments | « ash/common/wm/window_cycle_list.cc ('k') | ash/common/wm/window_positioning_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e50e9ce5b5c210d16aad94ae83bfff00d871cd2f 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::GetWmRootWindowForNewWindows();
WmWindow* top_window = GetReferenceWindow(target, nullptr, nullptr);
// Our window should not have any impact if we are already on top.
« no previous file with comments | « ash/common/wm/window_cycle_list.cc ('k') | ash/common/wm/window_positioning_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698