summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ash/shelf/shelf_layout_manager.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/ash/shelf/shelf_layout_manager.cc b/ash/shelf/shelf_layout_manager.cc
index db8c6ea..fce6b9e 100644
--- a/ash/shelf/shelf_layout_manager.cc
+++ b/ash/shelf/shelf_layout_manager.cc
@@ -1186,16 +1186,8 @@ void ShelfLayoutManager::OnDockBoundsChanging(
void ShelfLayoutManager::OnLockStateEvent(LockStateObserver::EventType event) {
if (event == EVENT_LOCK_ANIMATION_STARTED) {
- // Enter the screen locked state as the animation starts to prevent
- // layout changes as the screen locks.
+ // Enter the screen locked state.
state_.is_screen_locked = true;
- // Hide the status area widget (using auto hide animation).
- base::AutoReset<ShelfVisibilityState> state(&state_.visibility_state,
- SHELF_HIDDEN);
- TargetBounds target_bounds;
- CalculateTargetBounds(state_, &target_bounds);
- UpdateBoundsAndOpacity(target_bounds, true, NULL);
- UpdateVisibilityState();
}
}