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

Unified Diff: ash/shelf/shelf_widget_unittest.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/shelf/shelf_widget_unittest.cc
diff --git a/ash/shelf/shelf_widget_unittest.cc b/ash/shelf/shelf_widget_unittest.cc
index a2330e3c27ba428a66c111bb5ccbd146b1c5556c..42c07ac666b40cebae102bb60e2b5f52cda83400 100644
--- a/ash/shelf/shelf_widget_unittest.cc
+++ b/ash/shelf/shelf_widget_unittest.cc
@@ -354,6 +354,7 @@ class ShelfInitializer : public ShellObserver {
WmShelf* shelf = root_window->GetRootWindowController()->GetShelf();
shelf->SetAlignment(alignment_);
shelf->SetAutoHideBehavior(auto_hide_);
+ shelf->UpdateVisibilityState();
}
private:

Powered by Google App Engine
This is Rietveld 408576698