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

Unified Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.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
Index: chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc
diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc b/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc
index 8ba36e527823adf2b97020be1d92966d349de438..a8bcfe9d7a74bf05ac5d5d3849a1a200c7c8261f 100644
--- a/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc
+++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc
@@ -199,9 +199,9 @@ void ChromeNativeAppWindowViewsAuraAsh::OnBeforePanelWidgetInit(
ash::TYPE_APP_PANEL));
} else if (ash::Shell::HasInstance() && use_default_bounds) {
// Open a new panel on the target root.
- init_params->context = ash::Shell::GetTargetRootWindow();
+ init_params->context = ash::Shell::GetRootWindowForNewWindows();
init_params->bounds = gfx::Rect(GetPreferredSize());
- wm::ConvertRectToScreen(ash::Shell::GetTargetRootWindow(),
+ wm::ConvertRectToScreen(ash::Shell::GetRootWindowForNewWindows(),
&init_params->bounds);
}
}
« no previous file with comments | « chrome/browser/ui/ash/multi_user/multi_user_warning_dialog.cc ('k') | chrome/browser/ui/window_sizer/window_sizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698