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

Unified Diff: ash/common/shelf/wm_shelf.cc

Issue 2295003002: mash: Remove WmRootWindowControllerObserver. (Closed)
Patch Set: Address 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
« no previous file with comments | « ash/common/shelf/shelf_layout_manager.cc ('k') | ash/common/wm/dock/docked_window_layout_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/wm_shelf.cc
diff --git a/ash/common/shelf/wm_shelf.cc b/ash/common/shelf/wm_shelf.cc
index d56d4cb312b9de209b3711624117a1fdd6f1d4a3..c2fff5ab60eb48a06280fbf219c1c9a97786aa37 100644
--- a/ash/common/shelf/wm_shelf.cc
+++ b/ash/common/shelf/wm_shelf.cc
@@ -74,8 +74,8 @@ void WmShelf::SetAlignment(ShelfAlignment alignment) {
// The ShelfWidget notifies the ShelfView of the alignment change.
shelf_layout_manager_->shelf_widget()->OnShelfAlignmentChanged();
WmShell::Get()->shelf_delegate()->OnShelfAlignmentChanged(this);
+ shelf_layout_manager_->LayoutShelf();
WmShell::Get()->NotifyShelfAlignmentChanged(GetWindow()->GetRootWindow());
- // ShelfLayoutManager will resize the shelf.
}
bool WmShelf::IsHorizontalAlignment() const {
« no previous file with comments | « ash/common/shelf/shelf_layout_manager.cc ('k') | ash/common/wm/dock/docked_window_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698