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

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

Issue 2512693003: ash: Replace SessionStateDelegate::CanAddUserToMultiProfile (Closed)
Patch Set: for #2 Created 4 years, 1 month 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/common/session/session_state_delegate.cc ('k') | ash/common/system/user/user_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/session/session_types.h
diff --git a/ash/common/session/session_types.h b/ash/common/session/session_types.h
index 22604d12735f7efca9914304bce787b9925cb989..6c7b079b499a24634b770bd1e14fb6acbbde967c 100644
--- a/ash/common/session/session_types.h
+++ b/ash/common/session/session_types.h
@@ -11,6 +11,18 @@ namespace ash {
// index 0 is the currently active user.
using UserIndex = int;
+// Represents possible user adding scenarios.
+enum class AddUserSessionPolicy {
+ // Adding a user is allowed.
+ ALLOWED,
+ // Disallowed due to primary user's policy.
+ ERROR_NOT_ALLOWED_PRIMARY_USER,
+ // Disallowed due to no eligible users.
+ ERROR_NO_ELIGIBLE_USERS,
+ // Disallowed due to reaching maximum supported user.
+ ERROR_MAXIMUM_USERS_REACHED,
+};
+
} // namespace ash
#endif // ASH_COMMON_SESSION_SESSION_TYPES_H_
« no previous file with comments | « ash/common/session/session_state_delegate.cc ('k') | ash/common/system/user/user_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698