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

Unified Diff: chrome/browser/chromeos/ui/kiosk_external_update_notification.cc

Issue 2739553005: Moves maintaining root_window_for_new_windows_ to Shell (Closed)
Patch Set: rename GetTargetWindow and further 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: chrome/browser/chromeos/ui/kiosk_external_update_notification.cc
diff --git a/chrome/browser/chromeos/ui/kiosk_external_update_notification.cc b/chrome/browser/chromeos/ui/kiosk_external_update_notification.cc
index f086e8ce059458d461af75eaea044ea206b9e237..3a3f3e4c23112aae91d9ae7c0deeffa2a48e9af8 100644
--- a/chrome/browser/chromeos/ui/kiosk_external_update_notification.cc
+++ b/chrome/browser/chromeos/ui/kiosk_external_update_notification.cc
@@ -121,7 +121,7 @@ void KioskExternalUpdateNotification::CreateAndShowNotificationView(
view_ = new KioskExternalUpdateNotificationView(this);
view_->SetMessage(message);
- aura::Window* root_window = ash::Shell::GetTargetRootWindow();
+ aura::Window* root_window = ash::Shell::GetRootWindowForNewWindows();
gfx::Size rs = root_window->bounds().size();
gfx::Size ps = view_->GetPreferredSize();
gfx::Rect bounds((rs.width() - ps.width()) / 2,

Powered by Google App Engine
This is Rietveld 408576698