Index: ash/wm/workspace_controller.cc |
diff --git a/ash/wm/workspace_controller.cc b/ash/wm/workspace_controller.cc |
index 65b3570c2304f1603965e62b58d79c995eaac61b..bc553a7a1bf02e777faab82bd2345bf6b363988c 100644 |
--- a/ash/wm/workspace_controller.cc |
+++ b/ash/wm/workspace_controller.cc |
@@ -61,8 +61,7 @@ wm::WorkspaceWindowState WorkspaceController::GetWindowState() const { |
if (fullscreen && !wm::GetWindowState(fullscreen)->ignored_by_shelf()) |
return wm::WORKSPACE_WINDOW_STATE_FULL_SCREEN; |
- const gfx::Rect shelf_bounds( |
- WmShelf::ForWindow(WmWindow::Get(viewport_))->GetIdealBounds()); |
+ const gfx::Rect shelf_bounds(WmShelf::ForWindow(viewport_)->GetIdealBounds()); |
bool window_overlaps_launcher = false; |
// The default container may contain windows that may overlap the launcher |
// shelf and affect its transparency. |