Chromium Code Reviews| 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, |
|
James Cook
2016/11/18 00:24:08
optional nit: What about ERROR_NO_ELIGIBLE_USERS?
xiyuan
2016/11/18 22:05:25
Sounds good. Done.
|
| + // Disallowed due to reaching maximum supported user. |
| + ERROR_MAXIMUM_USERS_REACHED, |
| +}; |
| + |
| } // namespace ash |
| #endif // ASH_COMMON_SESSION_SESSION_TYPES_H_ |