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

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

Issue 2416253004: ash: Use session_manager::SessionState (Closed)
Patch Set: add comment about session state in SessionStaetDelegateChromeos Created 4 years, 2 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/DEPS ('k') | ash/common/session/session_state_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/session/session_state_delegate.h
diff --git a/ash/common/session/session_state_delegate.h b/ash/common/session/session_state_delegate.h
index 8a52532fa68c09aedb7a41374a06002ace040baf..608a2d4f1a6c334f00569863e45c51374c6f5bd5 100644
--- a/ash/common/session/session_state_delegate.h
+++ b/ash/common/session/session_state_delegate.h
@@ -7,6 +7,7 @@
#include "ash/ash_export.h"
#include "ash/common/session/session_types.h"
+#include "components/session_manager/session_manager_types.h"
class AccountId;
@@ -38,22 +39,6 @@ class ASH_EXPORT SessionStateDelegate {
ADD_USER_ERROR_MAXIMUM_USERS_REACHED,
};
- // Defines session state i.e. whether session is running or not and
- // whether user session is blocked by things like multi-profile login.
- enum SessionState {
- // When primary user login UI is shown i.e. after boot or sign out,
- // no active user session exists yet.
- SESSION_STATE_LOGIN_PRIMARY = 0,
-
- // Inside user session (including lock screen),
- // no login UI (primary or multi-profiles) is shown.
- SESSION_STATE_ACTIVE,
-
- // When secondary user login UI is shown i.e. other users are
- // already logged in and is currently adding another user to the session.
- SESSION_STATE_LOGIN_SECONDARY,
- };
-
virtual ~SessionStateDelegate() {}
// Returns the maximum possible number of logged in users.
@@ -96,7 +81,7 @@ class ASH_EXPORT SessionStateDelegate {
virtual bool IsUserSessionBlocked() const = 0;
// Returns current session state.
- virtual SessionState GetSessionState() const = 0;
+ virtual session_manager::SessionState GetSessionState() const = 0;
// Gets the user info for the user with the given |index|. See session_types.h
// for a description of UserIndex.
« no previous file with comments | « ash/DEPS ('k') | ash/common/session/session_state_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698