| Index: chrome/browser/chromeos/policy/enrollment_status_chromeos.h
|
| diff --git a/chrome/browser/chromeos/policy/enrollment_status_chromeos.h b/chrome/browser/chromeos/policy/enrollment_status_chromeos.h
|
| index ac2a47aa764417fa4a2591e9145656ac37ae9b38..b71f437abef91ebe5516ce96f90be7479c08735f 100644
|
| --- a/chrome/browser/chromeos/policy/enrollment_status_chromeos.h
|
| +++ b/chrome/browser/chromeos/policy/enrollment_status_chromeos.h
|
| @@ -17,15 +17,17 @@ class EnrollmentStatus {
|
| public:
|
| // Enrollment status codes.
|
| enum Status {
|
| - STATUS_SUCCESS, // Enrollment succeeded.
|
| - STATUS_REGISTRATION_FAILED, // DM registration failed.
|
| - STATUS_REGISTRATION_BAD_MODE, // Bad device mode.
|
| - STATUS_POLICY_FETCH_FAILED, // DM policy fetch failed.
|
| - STATUS_VALIDATION_FAILED, // Policy validation failed.
|
| - STATUS_LOCK_ERROR, // Cryptohome failed to lock the device.
|
| - STATUS_LOCK_TIMEOUT, // Timeout while waiting for the lock.
|
| - STATUS_LOCK_WRONG_USER, // Locked to different domain.
|
| - STATUS_STORE_ERROR, // Failed to store the policy.
|
| + STATUS_SUCCESS, // Enrollment succeeded.
|
| + STATUS_REGISTRATION_FAILED, // DM registration failed.
|
| + STATUS_REGISTRATION_BAD_MODE, // Bad device mode.
|
| + STATUS_ROBOT_AUTH_FETCH_FAILED, // API OAuth2 auth code failure.
|
| + STATUS_ROBOT_REFRESH_FETCH_FAILED, // API OAuth2 refresh token failure.
|
| + STATUS_POLICY_FETCH_FAILED, // DM policy fetch failed.
|
| + STATUS_VALIDATION_FAILED, // Policy validation failed.
|
| + STATUS_LOCK_ERROR, // Cryptohome failed to lock the device.
|
| + STATUS_LOCK_TIMEOUT, // Timeout while waiting for the lock.
|
| + STATUS_LOCK_WRONG_USER, // Locked to different domain.
|
| + STATUS_STORE_ERROR, // Failed to store the policy.
|
| };
|
|
|
| // Helpers for constructing errors for relevant cases.
|
| @@ -33,6 +35,8 @@ class EnrollmentStatus {
|
| static EnrollmentStatus ForRegistrationError(
|
| DeviceManagementStatus client_status);
|
| static EnrollmentStatus ForFetchError(DeviceManagementStatus client_status);
|
| + static EnrollmentStatus ForRobotAuthError(
|
| + DeviceManagementStatus client_status);
|
| static EnrollmentStatus ForValidationError(
|
| CloudPolicyValidatorBase::Status validation_status);
|
| static EnrollmentStatus ForStoreError(
|
|
|