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

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

Issue 2512693003: ash: Replace SessionStateDelegate::CanAddUserToMultiProfile (Closed)
Patch Set: 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
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..2ca03c7ac43d5651623c21787363998421eeb40e 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_OUT_OF_USERS,
+ // Disallowed due to reaching maximum supported user.
+ ERROR_MAXIMUM_USERS_REACHED,
+};
+
} // namespace ash
#endif // ASH_COMMON_SESSION_SESSION_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698