| 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/enrollment_uma.h" | 5 #include "chrome/browser/chromeos/login/enrollment/enrollment_uma.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/metrics/sparse_histogram.h" | 8 #include "base/metrics/histogram_macros.h" |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| 11 | 11 |
| 12 const char * const kMetricEnrollment = "Enterprise.Enrollment"; | 12 const char * const kMetricEnrollment = "Enterprise.Enrollment"; |
| 13 const char * const kMetricEnrollmentForced = "Enterprise.EnrollmentForced"; | 13 const char * const kMetricEnrollmentForced = "Enterprise.EnrollmentForced"; |
| 14 const char * const kMetricEnrollmentRecovery = "Enterprise.EnrollmentRecovery"; | 14 const char * const kMetricEnrollmentRecovery = "Enterprise.EnrollmentRecovery"; |
| 15 | 15 |
| 16 } // namespace | 16 } // namespace |
| 17 | 17 |
| 18 namespace chromeos { | 18 namespace chromeos { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 35 case policy::EnrollmentConfig::MODE_RECOVERY: | 35 case policy::EnrollmentConfig::MODE_RECOVERY: |
| 36 UMA_HISTOGRAM_SPARSE_SLOWLY(kMetricEnrollmentRecovery, sample); | 36 UMA_HISTOGRAM_SPARSE_SLOWLY(kMetricEnrollmentRecovery, sample); |
| 37 break; | 37 break; |
| 38 case policy::EnrollmentConfig::MODE_NONE: | 38 case policy::EnrollmentConfig::MODE_NONE: |
| 39 NOTREACHED(); | 39 NOTREACHED(); |
| 40 break; | 40 break; |
| 41 } | 41 } |
| 42 } | 42 } |
| 43 | 43 |
| 44 } // namespace chromeos | 44 } // namespace chromeos |
| OLD | NEW |