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

Unified Diff: chrome/browser/chromeos/policy/enrollment_status_chromeos.h

Issue 12538009: Public Sessions: fetch device robot api token during enterprise enrollment. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 months 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: 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(

Powered by Google App Engine
This is Rietveld 408576698