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

Unified Diff: ash/shelf/shelf_layout_manager.cc

Issue 830393004: Revert of Special check on Supervised User creation flow added to prevent misleading shelf alignment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | 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 77cab17d37e5cbdc6a31517365051bb20e525f06..08831e24dfb194a5692e01d817225290c311725f 100644
--- a/ash/shelf/shelf_layout_manager.cc
+++ b/ash/shelf/shelf_layout_manager.cc
@@ -252,8 +252,7 @@
return false;
alignment_ = alignment;
- if (Shell::GetInstance()->session_state_delegate()->IsUserSessionBlocked() ||
- state_.is_adding_user_screen) {
+ if (state_.is_screen_locked || state_.is_adding_user_screen) {
// The shelf will itself move to the bottom while locked. If a request is
// sent to move while being locked, we postpone the move until the lock
// screen goes away.
@@ -271,8 +270,7 @@
// bottom alignment. Note: We cannot use state_.is_screen_locked here since
// that flag gets set later than the SessionStateDelegate reports a locked
// screen which leads in
- if (Shell::GetInstance()->session_state_delegate()->IsUserSessionBlocked() ||
- state_.is_adding_user_screen)
+ if (state_.is_screen_locked || state_.is_adding_user_screen)
return SHELF_ALIGNMENT_BOTTOM;
return alignment_;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698