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 544b196ccc8a5abb61b203f44eec8c69137d8a02..21f27dd9399fb3f1e4e1c74e7ed1a2aee26d3882 100644 |
--- a/ash/common/system/toast/toast_overlay.cc |
+++ b/ash/common/system/toast/toast_overlay.cc |
@@ -55,10 +55,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 WmShell::Get() |
- ->GetRootWindowForNewWindows() |
- ->GetRootWindowController() |
- ->GetShelf() |
+ return WmShelf::ForWindow(WmShell::Get()->GetRootWindowForNewWindows()) |
->GetUserWorkAreaBounds(); |
} |