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

Unified 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, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/cloud/enterprise_metrics.h
diff --git a/chrome/browser/policy/cloud/enterprise_metrics.h b/chrome/browser/policy/cloud/enterprise_metrics.h
index 6d262e0a45a6f1f0f7b73c096636cd05713fa1f4..0e30532b647d4d1c338a3ef4b5ae6a1560e66c69 100644
--- a/chrome/browser/policy/cloud/enterprise_metrics.h
+++ b/chrome/browser/policy/cloud/enterprise_metrics.h
@@ -159,12 +159,45 @@ enum MetricEnrollment {
kMetricEnrollmentSize // Must be the last.
};
+// Events related to policy refresh.
+enum MetricPolicyRefresh {
+ // A refresh occurred while the policy was not invalidated and the policy was
+ // changed. Invalidations were enabled.
+ kMetricPolicyRefreshChanged,
+ // A refresh occurred while the policy was not invalidated and the policy was
+ // changed. Invalidations were disabled.
+ kMetricPolicyRefreshChangedNoInvalidations,
+ // A refresh occurred while the policy was not invalidated and the policy was
+ // unchanged.
+ kMetricPolicyRefreshUnchanged,
+ // A refresh occurred while the policy was invalidated and the policy was
+ // changed.
+ kMetricPolicyRefreshInvalidatedChanged,
+ // A refresh occurred while the policy was invalidated and the policy was
+ // unchanged.
+ kMetricPolicyRefreshInvalidatedUnchanged,
+
+ kMetricPolicyRefreshSize // Must be the last.
Ilya Sherman 2013/07/30 01:23:16 nit: I see that this isn't the style being used in
Steve Condie 2013/07/30 06:12:31 Done.
+};
+
+// Events related to policy invalidations.
+enum MetricPolicyInvalidations {
+ // A invalidation with a payload was received.
+ kMetricPolicyInvalidationsPayload,
+ // A invalidation with no payload was received.
+ kMetricPolicyInvalidationsNoPayload,
+
+ kMetricPolicyInvalidationsSize // Must be the last.
+};
+
// Names for the UMA counters. They are shared from here since the events
// from the same enum above can be triggered in different files, and must use
// the same UMA histogram name.
extern const char* kMetricToken;
extern const char* kMetricPolicy;
extern const char* kMetricEnrollment;
+extern const char* kMetricPolicyRefresh;
+extern const char* kMetricPolicyInvalidations;
} // namespace policy

Powered by Google App Engine
This is Rietveld 408576698