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

Unified Diff: ash/session_state_delegate_stub.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/session_state_delegate_stub.h ('k') | ash/session_state_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/session_state_delegate_stub.cc
diff --git a/ash/session_state_delegate_stub.cc b/ash/session_state_delegate_stub.cc
index 51eeb91c72725ecfbd8898945dcf2ecc9aa9343b..ba1058b2ca80e7c9e90b9f8f45e4d640f2216479 100644
--- a/ash/session_state_delegate_stub.cc
+++ b/ash/session_state_delegate_stub.cc
@@ -69,6 +69,13 @@ bool SessionStateDelegateStub::IsUserSessionBlocked() const {
return !IsActiveUserSessionStarted() || IsScreenLocked();
}
+SessionStateDelegate::SessionState SessionStateDelegateStub::GetSessionState()
+ const {
+ // Assume that if session is not active we're at login.
+ return IsActiveUserSessionStarted() ?
+ SESSION_STATE_ACTIVE : SESSION_STATE_LOGIN_PRIMARY;
+}
+
const base::string16 SessionStateDelegateStub::GetUserDisplayName(
MultiProfileIndex index) const {
return base::UTF8ToUTF16("stub-user");
« no previous file with comments | « ash/session_state_delegate_stub.h ('k') | ash/session_state_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698