| 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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 UMA(policy::kMetricEnrollmentRegisterPolicyMissingLicenses); | 350 UMA(policy::kMetricEnrollmentRegisterPolicyMissingLicenses); |
| 351 break; | 351 break; |
| 352 case policy::DM_STATUS_SERVICE_DEPROVISIONED: | 352 case policy::DM_STATUS_SERVICE_DEPROVISIONED: |
| 353 UMA(policy::kMetricEnrollmentRegisterPolicyDeprovisioned); | 353 UMA(policy::kMetricEnrollmentRegisterPolicyDeprovisioned); |
| 354 break; | 354 break; |
| 355 case policy::DM_STATUS_SERVICE_DOMAIN_MISMATCH: | 355 case policy::DM_STATUS_SERVICE_DOMAIN_MISMATCH: |
| 356 UMA(policy::kMetricEnrollmentRegisterPolicyDomainMismatch); | 356 UMA(policy::kMetricEnrollmentRegisterPolicyDomainMismatch); |
| 357 break; | 357 break; |
| 358 case policy::DM_STATUS_CANNOT_SIGN_REQUEST: | 358 case policy::DM_STATUS_CANNOT_SIGN_REQUEST: |
| 359 UMA(policy::kMetricEnrollmentRegisterCannotSignRequest); | 359 UMA(policy::kMetricEnrollmentRegisterCannotSignRequest); |
| 360 break; |
| 361 case policy::DM_STATUS_SERVICE_ARC_DISABLED: |
| 362 NOTREACHED(); |
| 363 break; |
| 360 } | 364 } |
| 361 break; | 365 break; |
| 362 case policy::EnrollmentStatus::REGISTRATION_BAD_MODE: | 366 case policy::EnrollmentStatus::REGISTRATION_BAD_MODE: |
| 363 UMA(policy::kMetricEnrollmentInvalidEnrollmentMode); | 367 UMA(policy::kMetricEnrollmentInvalidEnrollmentMode); |
| 364 break; | 368 break; |
| 365 case policy::EnrollmentStatus::NO_STATE_KEYS: | 369 case policy::EnrollmentStatus::NO_STATE_KEYS: |
| 366 UMA(policy::kMetricEnrollmentNoStateKeys); | 370 UMA(policy::kMetricEnrollmentNoStateKeys); |
| 367 break; | 371 break; |
| 368 case policy::EnrollmentStatus::VALIDATION_FAILED: | 372 case policy::EnrollmentStatus::VALIDATION_FAILED: |
| 369 UMA(policy::kMetricEnrollmentPolicyValidationFailed); | 373 UMA(policy::kMetricEnrollmentPolicyValidationFailed); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 EnrollmentUMA(sample, enrollment_config_.mode); | 438 EnrollmentUMA(sample, enrollment_config_.mode); |
| 435 } | 439 } |
| 436 | 440 |
| 437 void EnterpriseEnrollmentHelperImpl::OnSigninProfileCleared( | 441 void EnterpriseEnrollmentHelperImpl::OnSigninProfileCleared( |
| 438 const base::Closure& callback) { | 442 const base::Closure& callback) { |
| 439 oauth_data_cleared_ = true; | 443 oauth_data_cleared_ = true; |
| 440 callback.Run(); | 444 callback.Run(); |
| 441 } | 445 } |
| 442 | 446 |
| 443 } // namespace chromeos | 447 } // namespace chromeos |
| OLD | NEW |