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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 break; | 426 break; |
427 case policy::EnrollmentStatus::NO_MACHINE_IDENTIFICATION: | 427 case policy::EnrollmentStatus::NO_MACHINE_IDENTIFICATION: |
428 UMA(policy::kMetricEnrollmentNoDeviceIdentification); | 428 UMA(policy::kMetricEnrollmentNoDeviceIdentification); |
429 break; | 429 break; |
430 case policy::EnrollmentStatus::ACTIVE_DIRECTORY_POLICY_FETCH_FAILED: | 430 case policy::EnrollmentStatus::ACTIVE_DIRECTORY_POLICY_FETCH_FAILED: |
431 UMA(policy::kMetricEnrollmentActiveDirectoryPolicyFetchFailed); | 431 UMA(policy::kMetricEnrollmentActiveDirectoryPolicyFetchFailed); |
432 break; | 432 break; |
433 case policy::EnrollmentStatus::DM_TOKEN_STORE_FAILED: | 433 case policy::EnrollmentStatus::DM_TOKEN_STORE_FAILED: |
434 UMA(policy::kMetricEnrollmentStoreDMTokenFailed); | 434 UMA(policy::kMetricEnrollmentStoreDMTokenFailed); |
435 break; | 435 break; |
| 436 case policy::EnrollmentStatus::LICENSE_REQUEST_FAILED: |
| 437 UMA(policy::kMetricEnrollmentLicenseRequestFailed); |
| 438 break; |
436 } | 439 } |
437 } | 440 } |
438 | 441 |
439 void EnterpriseEnrollmentHelperImpl::UMA(policy::MetricEnrollment sample) { | 442 void EnterpriseEnrollmentHelperImpl::UMA(policy::MetricEnrollment sample) { |
440 EnrollmentUMA(sample, enrollment_config_.mode); | 443 EnrollmentUMA(sample, enrollment_config_.mode); |
441 } | 444 } |
442 | 445 |
443 void EnterpriseEnrollmentHelperImpl::OnSigninProfileCleared( | 446 void EnterpriseEnrollmentHelperImpl::OnSigninProfileCleared( |
444 const base::Closure& callback) { | 447 const base::Closure& callback) { |
445 oauth_data_cleared_ = true; | 448 oauth_data_cleared_ = true; |
446 callback.Run(); | 449 callback.Run(); |
447 } | 450 } |
448 | 451 |
449 } // namespace chromeos | 452 } // namespace chromeos |
OLD | NEW |