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

Unified Diff: components/content_settings/core/browser/host_content_settings_map.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/content_settings/core/browser/host_content_settings_map.cc
diff --git a/components/content_settings/core/browser/host_content_settings_map.cc b/components/content_settings/core/browser/host_content_settings_map.cc
index d7e53a19ddd46cdcc87aaec38b4a2d372e04ca9a..3879f3096c0b32f26bb8077fd333adb59a9e1e78 100644
--- a/components/content_settings/core/browser/host_content_settings_map.cc
+++ b/components/content_settings/core/browser/host_content_settings_map.cc
@@ -611,11 +611,11 @@ void HostContentSettingsMap::RecordExceptionMetrics() {
int histogram_value =
ContentSettingTypeToHistogramValue(content_type, &num_values);
if (setting_entry.primary_pattern.HasPath()) {
- UMA_HISTOGRAM_ENUMERATION(
+ UMA_HISTOGRAM_EXACT_LINEAR(
"ContentSettings.ExceptionSchemeFile.Type.WithPath",
histogram_value, num_values);
} else {
- UMA_HISTOGRAM_ENUMERATION(
+ UMA_HISTOGRAM_EXACT_LINEAR(
"ContentSettings.ExceptionSchemeFile.Type.WithoutPath",
histogram_value, num_values);
}

Powered by Google App Engine
This is Rietveld 408576698