| OLD | NEW |
| 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 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ |
| 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ | 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ |
| 7 | 7 |
| 8 #include "components/policy/policy_export.h" | 8 #include "components/policy/policy_export.h" |
| 9 | 9 |
| 10 namespace policy { | 10 namespace policy { |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 // fetched from the DM Server. | 158 // fetched from the DM Server. |
| 159 kMetricEnrollmentRobotAuthCodeFetchFailed, | 159 kMetricEnrollmentRobotAuthCodeFetchFailed, |
| 160 // Enrollment failed because the robot account auth code couldn't be | 160 // Enrollment failed because the robot account auth code couldn't be |
| 161 // exchanged for a refresh token. | 161 // exchanged for a refresh token. |
| 162 kMetricEnrollmentRobotRefreshTokenFetchFailed, | 162 kMetricEnrollmentRobotRefreshTokenFetchFailed, |
| 163 // Enrollment failed because the robot account refresh token couldn't be | 163 // Enrollment failed because the robot account refresh token couldn't be |
| 164 // persisted on the device. | 164 // persisted on the device. |
| 165 kMetricEnrollmentRobotRefreshTokenStoreFailed, | 165 kMetricEnrollmentRobotRefreshTokenStoreFailed, |
| 166 // Enrollment failed because the administrator has deprovisioned the device. | 166 // Enrollment failed because the administrator has deprovisioned the device. |
| 167 kMetricEnrollmentDeprovisioned, | 167 kMetricEnrollmentDeprovisioned, |
| 168 // Enrollment failed because the device doesn't belong to the domain. |
| 169 kMetricEnrollmentDomainMismatch, |
| 168 | 170 |
| 169 kMetricEnrollmentSize // Must be the last. | 171 kMetricEnrollmentSize // Must be the last. |
| 170 }; | 172 }; |
| 171 | 173 |
| 172 // Events related to policy refresh. | 174 // Events related to policy refresh. |
| 173 enum MetricPolicyRefresh { | 175 enum MetricPolicyRefresh { |
| 174 // A refresh occurred while the policy was not invalidated and the policy was | 176 // A refresh occurred while the policy was not invalidated and the policy was |
| 175 // changed. Invalidations were enabled. | 177 // changed. Invalidations were enabled. |
| 176 METRIC_POLICY_REFRESH_CHANGED, | 178 METRIC_POLICY_REFRESH_CHANGED, |
| 177 // A refresh occurred while the policy was not invalidated and the policy was | 179 // A refresh occurred while the policy was not invalidated and the policy was |
| (...skipping 17 matching lines...) Expand all Loading... |
| 195 // the same UMA histogram name. | 197 // the same UMA histogram name. |
| 196 POLICY_EXPORT extern const char kMetricToken[]; | 198 POLICY_EXPORT extern const char kMetricToken[]; |
| 197 POLICY_EXPORT extern const char kMetricPolicy[]; | 199 POLICY_EXPORT extern const char kMetricPolicy[]; |
| 198 POLICY_EXPORT extern const char kMetricEnrollment[]; | 200 POLICY_EXPORT extern const char kMetricEnrollment[]; |
| 199 POLICY_EXPORT extern const char kMetricPolicyRefresh[]; | 201 POLICY_EXPORT extern const char kMetricPolicyRefresh[]; |
| 200 POLICY_EXPORT extern const char kMetricPolicyInvalidations[]; | 202 POLICY_EXPORT extern const char kMetricPolicyInvalidations[]; |
| 201 | 203 |
| 202 } // namespace policy | 204 } // namespace policy |
| 203 | 205 |
| 204 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ | 206 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ |
| OLD | NEW |