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

Unified Diff: ash/test/test_session_state_delegate.cc

Issue 18850003: Focus kept on login screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/test/test_session_state_delegate.cc
diff --git a/ash/test/test_session_state_delegate.cc b/ash/test/test_session_state_delegate.cc
index 7af9e3ca30462f3cce3c0bbedd92a1ba86a3e035..35355aeb57ece22c55cc17d9cc02bc175cfce4a4 100644
--- a/ash/test/test_session_state_delegate.cc
+++ b/ash/test/test_session_state_delegate.cc
@@ -53,6 +53,10 @@ void TestSessionStateDelegate::UnlockScreen() {
screen_locked_ = false;
}
+bool TestSessionStateDelegate::IsUserSessionBlocked() const {
+ return !IsActiveUserSessionStarted() || IsScreenLocked();
+}
+
void TestSessionStateDelegate::SetHasActiveUser(bool has_active_user) {
has_active_user_ = has_active_user;
if (!has_active_user)

Powered by Google App Engine
This is Rietveld 408576698