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 CHROME_BROWSER_POLICY_CLOUD_ENTERPRISE_METRICS_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_ENTERPRISE_METRICS_H_ |
6 #define CHROME_BROWSER_POLICY_CLOUD_ENTERPRISE_METRICS_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_ENTERPRISE_METRICS_H_ |
7 | 7 |
8 namespace policy { | 8 namespace policy { |
9 | 9 |
10 // Metrics collected for enterprise events. | 10 // Metrics collected for enterprise events. |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 kMetricEnrollmentAutoEnrollmentNotSupported, | 145 kMetricEnrollmentAutoEnrollmentNotSupported, |
146 // The lockbox initialization has taken too long to complete and the | 146 // The lockbox initialization has taken too long to complete and the |
147 // enrollment has been canceled because of that. | 147 // enrollment has been canceled because of that. |
148 kMetricLockboxTimeoutError, | 148 kMetricLockboxTimeoutError, |
149 // The username used to re-enroll the device does not belong to the domain | 149 // The username used to re-enroll the device does not belong to the domain |
150 // that the device was initially enrolled to. | 150 // that the device was initially enrolled to. |
151 kMetricEnrollmentWrongUserError, | 151 kMetricEnrollmentWrongUserError, |
152 // DM server reported that the licenses for the domain has expired or been | 152 // DM server reported that the licenses for the domain has expired or been |
153 // exhausted. | 153 // exhausted. |
154 kMetricMissingLicensesError, | 154 kMetricMissingLicensesError, |
| 155 // Enrollment failed because the robot account auth token couldn't be |
| 156 // exchanged for a refresh token. |
| 157 kMetricEnrollmentRobotRefreshTokenFetchFailed, |
155 | 158 |
156 kMetricEnrollmentSize // Must be the last. | 159 kMetricEnrollmentSize // Must be the last. |
157 }; | 160 }; |
158 | 161 |
159 // Names for the UMA counters. They are shared from here since the events | 162 // Names for the UMA counters. They are shared from here since the events |
160 // from the same enum above can be triggered in different files, and must use | 163 // from the same enum above can be triggered in different files, and must use |
161 // the same UMA histogram name. | 164 // the same UMA histogram name. |
162 extern const char* kMetricToken; | 165 extern const char* kMetricToken; |
163 extern const char* kMetricPolicy; | 166 extern const char* kMetricPolicy; |
164 extern const char* kMetricEnrollment; | 167 extern const char* kMetricEnrollment; |
165 | 168 |
166 } // namespace policy | 169 } // namespace policy |
167 | 170 |
168 #endif // CHROME_BROWSER_POLICY_CLOUD_ENTERPRISE_METRICS_H_ | 171 #endif // CHROME_BROWSER_POLICY_CLOUD_ENTERPRISE_METRICS_H_ |
OLD | NEW |