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

Unified Diff: chrome/browser/extensions/installed_loader.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: chrome/browser/extensions/installed_loader.cc
diff --git a/chrome/browser/extensions/installed_loader.cc b/chrome/browser/extensions/installed_loader.cc
index 85ce9632c137ab648b01bcbd1ed6236fa32b7bc5..46c9b6570cef100900fbc037f84bad849699e206 100644
--- a/chrome/browser/extensions/installed_loader.cc
+++ b/chrome/browser/extensions/installed_loader.cc
@@ -132,8 +132,8 @@ void RecordCreationFlags(const Extension* extension) {
for (int i = 0; i < Extension::kInitFromValueFlagBits; ++i) {
int flag = 1 << i;
if (extension->creation_flags() & flag) {
- UMA_HISTOGRAM_ENUMERATION(
- "Extensions.LoadCreationFlags", i, Extension::kInitFromValueFlagBits);
+ UMA_HISTOGRAM_EXACT_LINEAR("Extensions.LoadCreationFlags", i,
+ Extension::kInitFromValueFlagBits);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698