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

Unified Diff: ash/shelf/shelf_layout_manager.cc

Issue 1866113002: Fix Chrome OS Login status area layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update unit test. Created 4 years, 8 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/root_window_controller_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_layout_manager.cc
diff --git a/ash/shelf/shelf_layout_manager.cc b/ash/shelf/shelf_layout_manager.cc
index 5dc36f4344b3dfceddd570e0dbe5c9520f46566c..f0330e74e6ee775043983863c5e3292ba887bc27 100644
--- a/ash/shelf/shelf_layout_manager.cc
+++ b/ash/shelf/shelf_layout_manager.cc
@@ -245,15 +245,13 @@ gfx::Rect ShelfLayoutManager::GetIdealBounds() {
}
void ShelfLayoutManager::LayoutShelf() {
- if (shelf_->shelf()) {
- TargetBounds target_bounds;
- CalculateTargetBounds(state_, &target_bounds);
- UpdateBoundsAndOpacity(target_bounds, false, NULL);
+ TargetBounds target_bounds;
+ CalculateTargetBounds(state_, &target_bounds);
+ UpdateBoundsAndOpacity(target_bounds, false, NULL);
- // Update insets in ShelfWindowTargeter when shelf bounds change.
- FOR_EACH_OBSERVER(ShelfLayoutManagerObserver, observers_,
- WillChangeVisibilityState(visibility_state()));
- }
+ // Update insets in ShelfWindowTargeter when shelf bounds change.
+ FOR_EACH_OBSERVER(ShelfLayoutManagerObserver, observers_,
+ WillChangeVisibilityState(visibility_state()));
}
ShelfVisibilityState ShelfLayoutManager::CalculateShelfVisibility() {
« no previous file with comments | « ash/root_window_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698