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

Unified Diff: chrome/browser/policy/cloud/cloud_policy_invalidator.cc

Issue 2886933003: Use stricter type checking in UMA_HISTOGRAM_ENUMERATION (Closed)
Patch Set: simplify type checking Created 3 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/cloud_policy_invalidator.cc
diff --git a/chrome/browser/policy/cloud/cloud_policy_invalidator.cc b/chrome/browser/policy/cloud/cloud_policy_invalidator.cc
index 90ce6edda3e0cf38775548d52f04a2f71da7efa5..061f79a4e9da79e586354c007f2d510e9fd3bf85 100644
--- a/chrome/browser/policy/cloud/cloud_policy_invalidator.cc
+++ b/chrome/browser/policy/cloud/cloud_policy_invalidator.cc
@@ -410,7 +410,8 @@ bool CloudPolicyInvalidator::IsInvalidationExpired(int64_t version) {
return invalidation_time < last_fetch_time;
}
-int CloudPolicyInvalidator::GetPolicyRefreshMetric(bool policy_changed) {
+MetricPolicyRefresh CloudPolicyInvalidator::GetPolicyRefreshMetric(
+ bool policy_changed) {
if (policy_changed) {
if (invalid_)
return METRIC_POLICY_REFRESH_INVALIDATED_CHANGED;
@@ -423,8 +424,9 @@ int CloudPolicyInvalidator::GetPolicyRefreshMetric(bool policy_changed) {
return METRIC_POLICY_REFRESH_UNCHANGED;
}
-int CloudPolicyInvalidator::GetInvalidationMetric(bool is_missing_payload,
- bool is_expired) {
+PolicyInvalidationType CloudPolicyInvalidator::GetInvalidationMetric(
+ bool is_missing_payload,
+ bool is_expired) {
if (is_expired) {
if (is_missing_payload)
return POLICY_INVALIDATION_TYPE_NO_PAYLOAD_EXPIRED;
« no previous file with comments | « chrome/browser/policy/cloud/cloud_policy_invalidator.h ('k') | chrome/browser/prerender/prerender_link_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698