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

Unified Diff: ash/session/session_controller.cc

Issue 2891223002: cros: Move wallpaper after login screen is gone (Closed)
Patch Set: rebase Created 3 years, 7 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/session/session_controller.cc
diff --git a/ash/session/session_controller.cc b/ash/session/session_controller.cc
index 82f5a6c5cf8c11c88a73f778c1082481080a501a..24c01d194f328af19a2c4b63fe44f6b289d59f50 100644
--- a/ash/session/session_controller.cc
+++ b/ash/session/session_controller.cc
@@ -82,13 +82,18 @@ bool SessionController::ShouldLockScreenAutomatically() const {
}
bool SessionController::IsUserSessionBlocked() const {
- // User sessions are blocked when session state is not ACTIVE, except that
- // LOCKED state with a running unlocking animation. This is made an exception
- // because the unlocking animation hides lock container at the end. During the
- // unlock animation, IsUserSessionBlocked needs to return unblocked so that
- // user windows are deemed activatable and ash correctly restore the active
- // window before locking.
+ // User sessions are blocked when session state is not ACTIVE, with two
+ // exceptions:
+ // - LOGGED_IN_NOT_ACTIVE state. This is needed so that browser windows
+ // created by session restore (or a default new browser window) is properly
+ // activated before session state changes to ACTIVE.
James Cook 2017/05/24 20:08:13 Aside: Didn't we have some trouble about 6 months
xiyuan 2017/05/24 20:37:22 I believe this is the relevant discussion in the C
James Cook 2017/05/24 20:52:35 Ah, OK. Nothing to do, then.
+ // - LOCKED state with a running unlocking animation. This is needed because
+ // the unlocking animation hides lock container at the end. During the
+ // unlock animation, IsUserSessionBlocked needs to return unblocked so that
+ // user windows are deemed activatable and ash correctly restore the active
+ // window before locking.
return state_ != SessionState::ACTIVE &&
+ state_ != SessionState::LOGGED_IN_NOT_ACTIVE &&
!(state_ == SessionState::LOCKED && is_unlocking_);
}
« no previous file with comments | « no previous file | ash/session/session_controller_unittest.cc » ('j') | chrome/browser/chromeos/login/ui/login_display_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698