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

Unified Diff: chrome/browser/notifications/message_center_stats_collector.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/notifications/message_center_stats_collector.cc
diff --git a/chrome/browser/notifications/message_center_stats_collector.cc b/chrome/browser/notifications/message_center_stats_collector.cc
index 0f336eacd84dcd4caaabc30f9e3bcffb276fd94a..24b4e857bb45ba14a6a46a1d2c55aa899f57453b 100644
--- a/chrome/browser/notifications/message_center_stats_collector.cc
+++ b/chrome/browser/notifications/message_center_stats_collector.cc
@@ -40,7 +40,7 @@ void MessageCenterStatsCollector::NotificationStats::RecordAggregateStats() {
if (!actions_[i])
continue;
UMA_HISTOGRAM_ENUMERATION("Notifications.PerNotificationActions",
- i,
+ static_cast<NotificationActionType>(i),
NOTIFICATION_ACTION_COUNT);
}
}
« no previous file with comments | « chrome/browser/metrics/android_metrics_provider.cc ('k') | chrome/browser/policy/cloud/cloud_policy_invalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698