| Index: ash/common/wm/workspace_controller.cc
|
| diff --git a/ash/common/wm/workspace_controller.cc b/ash/common/wm/workspace_controller.cc
|
| index 06fbba7c501348332bced71d221bbb44ba210e59..e5f01f0d07f19101997da81e15685c0680228c7a 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(
|
|
|