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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/policy/core/common/cloud/enterprise_metrics.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen.h" 5 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE: 271 case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE:
272 UMAFailure(policy::kMetricEnrollmentInvalidEnrollmentMode); 272 UMAFailure(policy::kMetricEnrollmentInvalidEnrollmentMode);
273 return; 273 return;
274 case policy::EnrollmentStatus::STATUS_LOCK_TIMEOUT: 274 case policy::EnrollmentStatus::STATUS_LOCK_TIMEOUT:
275 UMAFailure(policy::kMetricLockboxTimeoutError); 275 UMAFailure(policy::kMetricLockboxTimeoutError);
276 return; 276 return;
277 case policy::EnrollmentStatus::STATUS_LOCK_WRONG_USER: 277 case policy::EnrollmentStatus::STATUS_LOCK_WRONG_USER:
278 UMAFailure(policy::kMetricEnrollmentWrongUserError); 278 UMAFailure(policy::kMetricEnrollmentWrongUserError);
279 return; 279 return;
280 case policy::EnrollmentStatus::STATUS_NO_STATE_KEYS: 280 case policy::EnrollmentStatus::STATUS_NO_STATE_KEYS:
281 UMAFailure(policy::kMetricEnrollmentNoStateKeys);
282 return;
281 case policy::EnrollmentStatus::STATUS_VALIDATION_FAILED: 283 case policy::EnrollmentStatus::STATUS_VALIDATION_FAILED:
284 UMAFailure(policy::kMetricEnrollmentPolicyValidationFailed);
285 return;
282 case policy::EnrollmentStatus::STATUS_STORE_ERROR: 286 case policy::EnrollmentStatus::STATUS_STORE_ERROR:
287 UMAFailure(policy::kMetricEnrollmentCloudPolicyStoreError);
288 return;
283 case policy::EnrollmentStatus::STATUS_LOCK_ERROR: 289 case policy::EnrollmentStatus::STATUS_LOCK_ERROR:
284 UMAFailure(policy::kMetricEnrollmentOtherFailed); 290 UMAFailure(policy::kMetricEnrollmentLockBackendError);
285 return; 291 return;
286 case policy::EnrollmentStatus::STATUS_ROBOT_AUTH_FETCH_FAILED: 292 case policy::EnrollmentStatus::STATUS_ROBOT_AUTH_FETCH_FAILED:
287 UMAFailure(policy::kMetricEnrollmentRobotAuthCodeFetchFailed); 293 UMAFailure(policy::kMetricEnrollmentRobotAuthCodeFetchFailed);
288 return; 294 return;
289 case policy::EnrollmentStatus::STATUS_ROBOT_REFRESH_FETCH_FAILED: 295 case policy::EnrollmentStatus::STATUS_ROBOT_REFRESH_FETCH_FAILED:
290 UMAFailure(policy::kMetricEnrollmentRobotRefreshTokenFetchFailed); 296 UMAFailure(policy::kMetricEnrollmentRobotRefreshTokenFetchFailed);
291 return; 297 return;
292 case policy::EnrollmentStatus::STATUS_ROBOT_REFRESH_STORE_FAILED: 298 case policy::EnrollmentStatus::STATUS_ROBOT_REFRESH_STORE_FAILED:
293 UMAFailure(policy::kMetricEnrollmentRobotRefreshTokenStoreFailed); 299 UMAFailure(policy::kMetricEnrollmentRobotRefreshTokenStoreFailed);
294 return; 300 return;
(...skipping 26 matching lines...) Expand all
321 sample = policy::kMetricEnrollmentAutoFailed; 327 sample = policy::kMetricEnrollmentAutoFailed;
322 UMA(sample); 328 UMA(sample);
323 } 329 }
324 330
325 void EnrollmentScreen::ShowSigninScreen() { 331 void EnrollmentScreen::ShowSigninScreen() {
326 actor_->Show(); 332 actor_->Show();
327 actor_->ShowSigninScreen(); 333 actor_->ShowSigninScreen();
328 } 334 }
329 335
330 } // namespace chromeos 336 } // namespace chromeos
OLDNEW
« 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