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

Unified Diff: ash/common/wm/workspace_controller.cc

Issue 2293183002: ash: Remove ash::Shelf in favor of ash::WmShelf (Closed)
Patch Set: review comments Created 4 years, 4 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/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(

Powered by Google App Engine
This is Rietveld 408576698