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

Unified Diff: ash/wm/workspace_controller.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
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.

Powered by Google App Engine
This is Rietveld 408576698