| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/enterprise_enrollment_helper_
impl.h" | 5 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_
impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 break; | 335 break; |
| 336 case policy::DM_STATUS_SERVICE_MISSING_LICENSES: | 336 case policy::DM_STATUS_SERVICE_MISSING_LICENSES: |
| 337 UMA(policy::kMetricEnrollmentRegisterPolicyMissingLicenses); | 337 UMA(policy::kMetricEnrollmentRegisterPolicyMissingLicenses); |
| 338 break; | 338 break; |
| 339 case policy::DM_STATUS_SERVICE_DEPROVISIONED: | 339 case policy::DM_STATUS_SERVICE_DEPROVISIONED: |
| 340 UMA(policy::kMetricEnrollmentRegisterPolicyDeprovisioned); | 340 UMA(policy::kMetricEnrollmentRegisterPolicyDeprovisioned); |
| 341 break; | 341 break; |
| 342 case policy::DM_STATUS_SERVICE_DOMAIN_MISMATCH: | 342 case policy::DM_STATUS_SERVICE_DOMAIN_MISMATCH: |
| 343 UMA(policy::kMetricEnrollmentRegisterPolicyDomainMismatch); | 343 UMA(policy::kMetricEnrollmentRegisterPolicyDomainMismatch); |
| 344 break; | 344 break; |
| 345 case policy::DM_STATUS_CANNOT_SIGN_REQUEST: |
| 346 UMA(policy::kMetricEnrollmentRegisterCannotSignRequest); |
| 345 } | 347 } |
| 346 break; | 348 break; |
| 347 case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE: | 349 case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE: |
| 348 UMA(policy::kMetricEnrollmentInvalidEnrollmentMode); | 350 UMA(policy::kMetricEnrollmentInvalidEnrollmentMode); |
| 349 break; | 351 break; |
| 350 case policy::EnrollmentStatus::STATUS_NO_STATE_KEYS: | 352 case policy::EnrollmentStatus::STATUS_NO_STATE_KEYS: |
| 351 UMA(policy::kMetricEnrollmentNoStateKeys); | 353 UMA(policy::kMetricEnrollmentNoStateKeys); |
| 352 break; | 354 break; |
| 353 case policy::EnrollmentStatus::STATUS_VALIDATION_FAILED: | 355 case policy::EnrollmentStatus::STATUS_VALIDATION_FAILED: |
| 354 UMA(policy::kMetricEnrollmentPolicyValidationFailed); | 356 UMA(policy::kMetricEnrollmentPolicyValidationFailed); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 EnrollmentUMA(sample, enrollment_config_.mode); | 418 EnrollmentUMA(sample, enrollment_config_.mode); |
| 417 } | 419 } |
| 418 | 420 |
| 419 void EnterpriseEnrollmentHelperImpl::OnSigninProfileCleared( | 421 void EnterpriseEnrollmentHelperImpl::OnSigninProfileCleared( |
| 420 const base::Closure& callback) { | 422 const base::Closure& callback) { |
| 421 auth_data_cleared_ = true; | 423 auth_data_cleared_ = true; |
| 422 callback.Run(); | 424 callback.Run(); |
| 423 } | 425 } |
| 424 | 426 |
| 425 } // namespace chromeos | 427 } // namespace chromeos |
| OLD | NEW |