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

Unified Diff: chrome/browser/chromeos/login/enrollment/enrollment_screen.cc

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: make api auth fetching optional; add auth failure test cases Created 7 years, 8 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/login/enrollment/enrollment_screen.cc
diff --git a/chrome/browser/chromeos/login/enrollment/enrollment_screen.cc b/chrome/browser/chromeos/login/enrollment/enrollment_screen.cc
index 134665a230e4f0c45f38892b4479f858c033315b..7160edd1fcf98a2f21354f1d3d61c17d8e4d54dd 100644
--- a/chrome/browser/chromeos/login/enrollment/enrollment_screen.cc
+++ b/chrome/browser/chromeos/login/enrollment/enrollment_screen.cc
@@ -228,6 +228,7 @@ void EnrollmentScreen::ReportEnrollmentStatus(
return;
case policy::EnrollmentStatus::STATUS_REGISTRATION_FAILED:
case policy::EnrollmentStatus::STATUS_POLICY_FETCH_FAILED:
+ case policy::EnrollmentStatus::STATUS_ROBOT_AUTH_FETCH_FAILED:
switch (status.client_status()) {
case policy::DM_STATUS_SUCCESS:
case policy::DM_STATUS_REQUEST_INVALID:
@@ -258,6 +259,9 @@ void EnrollmentScreen::ReportEnrollmentStatus(
case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE:
UMAFailure(policy::kMetricEnrollmentInvalidEnrollmentMode);
return;
+ case policy::EnrollmentStatus::STATUS_ROBOT_REFRESH_FETCH_FAILED:
+ UMAFailure(policy::kMetricEnrollmentRobotRefreshTokenFetchFailed);
+ return;
case policy::EnrollmentStatus::STATUS_LOCK_TIMEOUT:
UMAFailure(policy::kMetricLockboxTimeoutError);
return;

Powered by Google App Engine
This is Rietveld 408576698