Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_USER_MANAGER_USER_TYPE_H_ | 5 #ifndef COMPONENTS_USER_MANAGER_USER_TYPE_H_ |
| 6 #define COMPONENTS_USER_MANAGER_USER_TYPE_H_ | 6 #define COMPONENTS_USER_MANAGER_USER_TYPE_H_ |
| 7 | 7 |
| 8 namespace user_manager { | 8 namespace user_manager { |
| 9 | 9 |
| 10 // The user type. Used in a histogram; do not modify existing types. | 10 // The user type. Used in a histogram; do not modify existing types. |
| 11 typedef enum { | 11 typedef enum { |
| 12 // Regular user, has a user name and password. | 12 // Regular user, has a user name and password. |
| 13 USER_TYPE_REGULAR = 0, | 13 USER_TYPE_REGULAR = 0, |
| 14 // Guest user, logs in without authentication. | 14 // Guest user, logs in without authentication. |
| 15 USER_TYPE_GUEST = 1, | 15 USER_TYPE_GUEST = 1, |
| 16 // Retail mode user, logs in without authentication. This is a special user | |
| 17 // type used in retail mode only. | |
| 18 USER_TYPE_RETAIL_MODE = 2, | |
| 19 // Public account user, logs in without authentication. Available only if | 16 // Public account user, logs in without authentication. Available only if |
| 20 // enabled through policy. | 17 // enabled through policy. |
| 21 USER_TYPE_PUBLIC_ACCOUNT = 3, | 18 USER_TYPE_PUBLIC_ACCOUNT = 2, |
|
Nikita (slow)
2014/10/01 07:13:01
Please leave constant values as is. See above "Use
rkc
2014/10/01 17:29:52
Done.
| |
| 22 // Supervised user, logs in only with local authentication. | 19 // Supervised user, logs in only with local authentication. |
| 23 USER_TYPE_SUPERVISED = 4, | 20 USER_TYPE_SUPERVISED = 3, |
| 24 // Kiosk app robot, logs in without authentication. | 21 // Kiosk app robot, logs in without authentication. |
| 25 USER_TYPE_KIOSK_APP = 5, | 22 USER_TYPE_KIOSK_APP = 4, |
| 26 // Maximum histogram value. | 23 // Maximum histogram value. |
| 27 NUM_USER_TYPES = 6 | 24 NUM_USER_TYPES = 5 |
| 28 } UserType; | 25 } UserType; |
| 29 | 26 |
| 30 } // namespace user_manager | 27 } // namespace user_manager |
| 31 | 28 |
| 32 #endif // COMPONENTS_USER_MANAGER_USER_TYPE_H_ | 29 #endif // COMPONENTS_USER_MANAGER_USER_TYPE_H_ |
| OLD | NEW |