Index: ash/common/wm/workspace_controller.cc |
diff --git a/ash/common/wm/workspace_controller.cc b/ash/common/wm/workspace_controller.cc |
index e29732631f133cbdc46150f24df116e5a6f6bd4d..af1f488d6fa3eb5aed284b70f497342ed436c045 100644 |
--- a/ash/common/wm/workspace_controller.cc |
+++ b/ash/common/wm/workspace_controller.cc |
@@ -64,8 +64,7 @@ wm::WorkspaceWindowState WorkspaceController::GetWindowState() const { |
const int kWindowContainerIds[] = { |
kShellWindowId_DefaultContainer, kShellWindowId_DockedContainer, |
}; |
- const gfx::Rect shelf_bounds( |
- viewport_->GetRootWindowController()->GetShelf()->GetIdealBounds()); |
+ const gfx::Rect shelf_bounds(WmShelf::ForWindow(viewport_)->GetIdealBounds()); |
bool window_overlaps_launcher = false; |
for (size_t i = 0; i < arraysize(kWindowContainerIds); i++) { |
WmWindow* container = viewport_->GetRootWindow()->GetChildByShellWindowId( |