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

Unified Diff: components/user_prefs/tracked/tracked_preference_helper.cc

Issue 2776853002: Make UMA_HISTOGRAM_ENUMERATION work with scoped enums. (Closed)
Patch Set: rebase Created 3 years, 9 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: components/user_prefs/tracked/tracked_preference_helper.cc
diff --git a/components/user_prefs/tracked/tracked_preference_helper.cc b/components/user_prefs/tracked/tracked_preference_helper.cc
index b0415c46ffa7028e4e49b8e7ff7bd8bcf3591511..fce26b931d3e716e137ffdce1bfd1830a4a02cc7 100644
--- a/components/user_prefs/tracked/tracked_preference_helper.cc
+++ b/components/user_prefs/tracked/tracked_preference_helper.cc
@@ -111,13 +111,14 @@ void TrackedPreferenceHelper::ReportAction(ResetAction reset_action) const {
// No report for DONT_RESET.
break;
case WANTED_RESET:
- UMA_HISTOGRAM_ENUMERATION(
+ UMA_HISTOGRAM_EXACT_LINEAR(
user_prefs::tracked::kTrackedPrefHistogramWantedReset, reporting_id_,
reporting_ids_count_);
break;
case DO_RESET:
- UMA_HISTOGRAM_ENUMERATION(user_prefs::tracked::kTrackedPrefHistogramReset,
- reporting_id_, reporting_ids_count_);
+ UMA_HISTOGRAM_EXACT_LINEAR(
+ user_prefs::tracked::kTrackedPrefHistogramReset, reporting_id_,
+ reporting_ids_count_);
break;
}
}

Powered by Google App Engine
This is Rietveld 408576698