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

Unified Diff: ash/shell/panel_window.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/shell.cc ('k') | ash/sticky_keys/sticky_keys_overlay.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/panel_window.cc
diff --git a/ash/shell/panel_window.cc b/ash/shell/panel_window.cc
index 5566a024da44d092f25189ce449f209d9b09a6f8..277579a43dcc20b231679b9e9e0e006fcd544c62 100644
--- a/ash/shell/panel_window.cc
+++ b/ash/shell/panel_window.cc
@@ -44,7 +44,8 @@ views::Widget* PanelWindow::CreateWidget() {
params().bounds.set_width(kDefaultWidth);
if (params().bounds.height() == 0)
params().bounds.set_height(kDefaultHeight);
- ::wm::ConvertRectToScreen(Shell::GetTargetRootWindow(), &params().bounds);
+ ::wm::ConvertRectToScreen(Shell::GetRootWindowForNewWindows(),
+ &params().bounds);
widget->Init(params());
widget->GetNativeView()->SetName(name_);
« no previous file with comments | « ash/shell.cc ('k') | ash/sticky_keys/sticky_keys_overlay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698