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

Unified Diff: ash/wm/lock_state_controller.cc

Issue 2797743002: ash: Merge LoginStatus update code path (Closed)
Patch Set: fix post unlock animation not run, and tests Created 3 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
Index: ash/wm/lock_state_controller.cc
diff --git a/ash/wm/lock_state_controller.cc b/ash/wm/lock_state_controller.cc
index dae6e253db8010f72543267a851f80104f5b0b9b..36f083b129ad0fb6cb6386dc69e291002075e431 100644
--- a/ash/wm/lock_state_controller.cc
+++ b/ash/wm/lock_state_controller.cc
@@ -66,7 +66,6 @@ const int LockStateController::kShutdownRequestDelayMs = 50;
LockStateController::LockStateController(
ShutdownController* shutdown_controller)
: animator_(new SessionStateAnimatorImpl()),
- login_status_(LoginStatus::NOT_LOGGED_IN),
system_is_locked_(false),
shutting_down_(false),
shutdown_after_lock_(false),
@@ -191,12 +190,6 @@ void LockStateController::OnHostCloseRequested(
Shell::Get()->shell_delegate()->Exit();
}
-void LockStateController::OnLoginStateChanged(LoginStatus status) {
James Cook 2017/04/05 00:16:24 Just to double check... This is safe to remove bec
xiyuan 2017/04/05 22:29:07 IIUC, this function is not actually needed. |login
- if (status != LoginStatus::LOCKED)
- login_status_ = status;
- system_is_locked_ = (status == LoginStatus::LOCKED);
-}
-
void LockStateController::OnAppTerminating() {
// If we hear that Chrome is exiting but didn't request it ourselves, all we
// can really hope for is that we'll have time to clear the screen.

Powered by Google App Engine
This is Rietveld 408576698