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

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

Issue 2688353005: Fix shelf alignment and auto-hide initialization. (Closed)
Patch Set: Fix mash_unittests by installing a TestShellDelegate. Created 3 years, 10 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/shelf/wm_shelf.cc
diff --git a/ash/common/shelf/wm_shelf.cc b/ash/common/shelf/wm_shelf.cc
index cf9d61540512c022b926c1f13e2e557a38e20ccc..7008cdcd7dcc57a3736beb3c72416f4bfabb718f 100644
--- a/ash/common/shelf/wm_shelf.cc
+++ b/ash/common/shelf/wm_shelf.cc
@@ -133,9 +133,6 @@ void WmShelf::CreateShelfView() {
DCHECK(!shelf_view_);
shelf_view_ = shelf_widget_->CreateShelfView();
shelf_locking_manager_.reset(new ShelfLockingManager(this));
- // When the shelf is created the alignment is unlocked. Chrome will update the
- // alignment later from preferences.
- alignment_ = SHELF_ALIGNMENT_BOTTOM;
WmShell::Get()->shelf_controller()->NotifyShelfCreated(this);
}

Powered by Google App Engine
This is Rietveld 408576698