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

Unified Diff: chrome/browser/chromeos/ui/idle_app_name_notification_view.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/chromeos/ui/idle_app_name_notification_view.cc
diff --git a/chrome/browser/chromeos/ui/idle_app_name_notification_view.cc b/chrome/browser/chromeos/ui/idle_app_name_notification_view.cc
index 23a39bf7e10301d8e4239b51575cd601a7e6201b..5b35927aeb886d788d3821856ac6e279d6bdd165 100644
--- a/chrome/browser/chromeos/ui/idle_app_name_notification_view.cc
+++ b/chrome/browser/chromeos/ui/idle_app_name_notification_view.cc
@@ -54,7 +54,7 @@ const int kWindowCornerRadius = 4;
// Creates and shows the message widget for |view| with |animation_time_ms|.
void CreateAndShowWidget(views::WidgetDelegateView* delegate,
int animation_time_ms) {
- aura::Window* root_window = ash::Shell::GetTargetRootWindow();
+ aura::Window* root_window = ash::Shell::GetRootWindowForNewWindows();
gfx::Size rs = root_window->bounds().size();
gfx::Size ps = delegate->GetPreferredSize();
gfx::Rect bounds((rs.width() - ps.width()) / 2,

Powered by Google App Engine
This is Rietveld 408576698