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

Unified Diff: chrome/browser/chromeos/login/enrollment/enterprise_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: 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/login/enrollment/enterprise_enrollment_screen.cc
diff --git a/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc b/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc
index 8824c03a3c98b5bc827c86afe61de522a59a310b..d47c88631981fcc97e62ca1f1568f452495c657e 100644
--- a/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc
+++ b/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc
@@ -227,6 +227,7 @@ void EnterpriseEnrollmentScreen::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:
@@ -257,6 +258,9 @@ void EnterpriseEnrollmentScreen::ReportEnrollmentStatus(
case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE:
UMAFailure(policy::kMetricEnrollmentInvalidEnrollmentMode);
return;
+ case policy::EnrollmentStatus::STATUS_ROBOT_REFRESH_FETCH_FAILED:
+ UMAFailure(policy::kMetricEnrollmentOtherFailed);
Mattias Nissler (ping if slow) 2013/03/19 06:33:08 If this should really use the same UMA code (which
David Roche 2013/04/02 01:59:25 Added unique UMA code.
+ return;
case policy::EnrollmentStatus::STATUS_LOCK_TIMEOUT:
UMAFailure(policy::kMetricLockboxTimeoutError);
return;

Powered by Google App Engine
This is Rietveld 408576698