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

Unified Diff: ash/common/session/session_controller.h

Issue 2741403004: mash: Update LoginStatus with session state updates (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | ash/common/session/session_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/session/session_controller.h
diff --git a/ash/common/session/session_controller.h b/ash/common/session/session_controller.h
index 99d0daff8222b2349cfd7861bb5e113ebd83eaa6..5a81c724072ef7c045913aedd2d5d5de5fecfc0d 100644
--- a/ash/common/session/session_controller.h
+++ b/ash/common/session/session_controller.h
@@ -20,6 +20,7 @@ class AccountId;
namespace ash {
+enum class LoginStatus;
class SessionStateObserver;
// Implements mojom::SessionController to cache session related info such as
@@ -85,6 +86,10 @@ class ASH_EXPORT SessionController
void AddSessionStateObserver(SessionStateObserver* observer);
void RemoveSessionStateObserver(SessionStateObserver* observer);
+ // Returns the legacy ash notion of login status.
+ // NOTE: Prefer GetSessionState() in new code.
+ LoginStatus GetLoginStatus() const;
+
// mojom::SessionController
void SetClient(mojom::SessionControllerClientPtr client) override;
void SetSessionInfo(mojom::SessionInfoPtr info) override;
@@ -96,6 +101,9 @@ class ASH_EXPORT SessionController
void SetSessionState(session_manager::SessionState state);
void AddUserSession(mojom::UserSessionPtr user_session);
+ // Helper that returns login status when the session state is ACTIVE.
+ LoginStatus GetLoginStatusForActiveSession() const;
+
// Bindings for mojom::SessionController interface.
mojo::BindingSet<mojom::SessionController> bindings_;
« no previous file with comments | « no previous file | ash/common/session/session_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698