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

Unified Diff: ash/test/test_session_state_delegate.cc

Issue 231123002: Notify about major session changes events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit_tests Created 6 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
« no previous file with comments | « ash/test/test_session_state_delegate.h ('k') | chrome/browser/chromeos/login/session_login_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c4f1ea5b756da14baa03aead6537f483fdffe936..f7efe1df4b49e163ab53a4a6e473fee330352287 100644
--- a/ash/test/test_session_state_delegate.cc
+++ b/ash/test/test_session_state_delegate.cc
@@ -91,6 +91,16 @@ bool TestSessionStateDelegate::IsUserSessionBlocked() const {
user_adding_screen_running_;
}
+SessionStateDelegate::SessionState TestSessionStateDelegate::GetSessionState()
+ const {
+ if (user_adding_screen_running_)
+ return SESSION_STATE_LOGIN_SECONDARY;
+
+ // Assuming that if session is not active we're at login.
+ return IsActiveUserSessionStarted() ?
+ SESSION_STATE_ACTIVE : SESSION_STATE_LOGIN_PRIMARY;
+}
+
void TestSessionStateDelegate::SetHasActiveUser(bool has_active_user) {
has_active_user_ = has_active_user;
if (!has_active_user)
« no previous file with comments | « ash/test/test_session_state_delegate.h ('k') | chrome/browser/chromeos/login/session_login_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698