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

Unified Diff: ash/common/system/toast/toast_overlay.cc

Issue 2194353002: mash: Migrate ScopedTargetRootWindow to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reflow comment Created 4 years, 5 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: ash/common/system/toast/toast_overlay.cc
diff --git a/ash/common/system/toast/toast_overlay.cc b/ash/common/system/toast/toast_overlay.cc
index 868834144974974ef1a097a16d19d23660aec867..8aef72b4e87a2bc84103eb45c7d7a16b4a15d307 100644
--- a/ash/common/system/toast/toast_overlay.cc
+++ b/ash/common/system/toast/toast_overlay.cc
@@ -56,7 +56,7 @@ const int kToastMinimumWidth = 288;
// (including new toasts).
gfx::Rect GetUserWorkAreaBounds() {
return WmShell::Get()
- ->GetRootWindowForNewWindows()
+ ->root_window_for_new_windows()
->GetRootWindowController()
->GetShelf()
->GetUserWorkAreaBounds();
@@ -226,7 +226,7 @@ ToastOverlay::ToastOverlay(Delegate* delegate,
params.bounds = CalculateOverlayBounds();
// Show toasts above the app list and below the lock screen.
WmShell::Get()
- ->GetRootWindowForNewWindows()
+ ->root_window_for_new_windows()
->GetRootWindowController()
->ConfigureWidgetInitParamsForContainer(
overlay_widget_.get(), kShellWindowId_SystemModalContainer, &params);

Powered by Google App Engine
This is Rietveld 408576698