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

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

Issue 2886253002: mash: remove more shell/shelf WmWindow usage. (Closed)
Patch Set: Fix WmShelf::ForWindow. Created 3 years, 7 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/system/session/logout_confirmation_dialog.cc ('k') | ash/system/tray/system_tray_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/toast/toast_overlay.cc
diff --git a/ash/system/toast/toast_overlay.cc b/ash/system/toast/toast_overlay.cc
index d87952106741a92478f631b6d1ed54d005321aeb..80eb27f2bf6f096a9a2aa07d3af5dfd7fe717048 100644
--- a/ash/system/toast/toast_overlay.cc
+++ b/ash/system/toast/toast_overlay.cc
@@ -50,7 +50,7 @@ const int kToastMinimumWidth = 288;
// Returns the work area bounds for the root window where new windows are added
// (including new toasts).
gfx::Rect GetUserWorkAreaBounds() {
- return WmShelf::ForWindow(Shell::GetWmRootWindowForNewWindows())
+ return WmShelf::ForWindow(Shell::GetRootWindowForNewWindows())
->GetUserWorkAreaBounds();
}
@@ -216,8 +216,7 @@ ToastOverlay::ToastOverlay(Delegate* delegate,
params.remove_standard_frame = true;
params.bounds = CalculateOverlayBounds();
// Show toasts above the app list and below the lock screen.
- Shell::GetWmRootWindowForNewWindows()
- ->GetRootWindowController()
+ GetRootWindowController(Shell::GetRootWindowForNewWindows())
->ConfigureWidgetInitParamsForContainer(
overlay_widget_.get(), kShellWindowId_SystemModalContainer, &params);
overlay_widget_->Init(params);
« no previous file with comments | « ash/system/session/logout_confirmation_dialog.cc ('k') | ash/system/tray/system_tray_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698