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

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

Issue 471543002: Add more detailed UMA reporting on enrollment errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | components/policy/core/common/cloud/enterprise_metrics.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 72332bd14aef0d3527624b519e8bf4a049fae587..7e0278a89439248020eeb8c3e466ca8a69dbc8e6 100644
--- a/chrome/browser/chromeos/login/enrollment/enrollment_screen.cc
+++ b/chrome/browser/chromeos/login/enrollment/enrollment_screen.cc
@@ -278,10 +278,16 @@ void EnrollmentScreen::ReportEnrollmentStatus(policy::EnrollmentStatus status) {
UMAFailure(policy::kMetricEnrollmentWrongUserError);
return;
case policy::EnrollmentStatus::STATUS_NO_STATE_KEYS:
+ UMAFailure(policy::kMetricEnrollmentNoStateKeys);
+ return;
case policy::EnrollmentStatus::STATUS_VALIDATION_FAILED:
+ UMAFailure(policy::kMetricEnrollmentPolicyValidationFailed);
+ return;
case policy::EnrollmentStatus::STATUS_STORE_ERROR:
+ UMAFailure(policy::kMetricEnrollmentCloudPolicyStoreError);
+ return;
case policy::EnrollmentStatus::STATUS_LOCK_ERROR:
- UMAFailure(policy::kMetricEnrollmentOtherFailed);
+ UMAFailure(policy::kMetricEnrollmentLockBackendError);
return;
case policy::EnrollmentStatus::STATUS_ROBOT_AUTH_FETCH_FAILED:
UMAFailure(policy::kMetricEnrollmentRobotAuthCodeFetchFailed);
« no previous file with comments | « no previous file | components/policy/core/common/cloud/enterprise_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698