Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Side by Side Diff: chrome/browser/policy/cloud/enterprise_metrics.h

Issue 19733003: Implement cloud policy invalidations using the invalidation service framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 155 // Enrollment failed because the robot account auth token couldn't be
156 // exchanged for a refresh token. 156 // exchanged for a refresh token.
157 kMetricEnrollmentRobotRefreshTokenFetchFailed, 157 kMetricEnrollmentRobotRefreshTokenFetchFailed,
158 158
159 kMetricEnrollmentSize // Must be the last. 159 kMetricEnrollmentSize // Must be the last.
160 }; 160 };
161 161
162 // Events related to policy refresh.
163 enum MetricPolicyRefresh {
164 // A refresh occurred while the policy was not invalidated and the policy was
165 // changed. Invalidations were enabled.
166 METRIC_POLICY_REFRESH_CHANGED,
167 // A refresh occurred while the policy was not invalidated and the policy was
168 // changed. Invalidations were disabled.
169 METRIC_POLICY_REFRESH_CHANGED_NO_INVALIDATIONS,
170 // A refresh occurred while the policy was not invalidated and the policy was
171 // unchanged.
172 METRIC_POLICY_REFRESH_UNCHANGED,
173 // A refresh occurred while the policy was invalidated and the policy was
174 // changed.
175 METRIC_POLICY_REFRESH_INVALIDATED_CHANGED,
176 // A refresh occurred while the policy was invalidated and the policy was
177 // unchanged.
178 METRIC_POLICY_REFRESH_INVALIDATED_UNCHANGED,
179
180 METRIC_POLICY_REFRESH_SIZE // Must be the last.
181 };
182
162 // Names for the UMA counters. They are shared from here since the events 183 // Names for the UMA counters. They are shared from here since the events
163 // from the same enum above can be triggered in different files, and must use 184 // from the same enum above can be triggered in different files, and must use
164 // the same UMA histogram name. 185 // the same UMA histogram name.
165 extern const char* kMetricToken; 186 extern const char kMetricToken[];
166 extern const char* kMetricPolicy; 187 extern const char kMetricPolicy[];
167 extern const char* kMetricEnrollment; 188 extern const char kMetricEnrollment[];
189 extern const char kMetricPolicyRefresh[];
190 extern const char kMetricPolicyInvalidations[];
168 191
169 } // namespace policy 192 } // namespace policy
170 193
171 #endif // CHROME_BROWSER_POLICY_CLOUD_ENTERPRISE_METRICS_H_ 194 #endif // CHROME_BROWSER_POLICY_CLOUD_ENTERPRISE_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698