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

Unified Diff: net/cert/x509_certificate.cc

Issue 484603006: Add LOCAL_ prefix to non-UMA histogram macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 6 years, 4 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
« no previous file with comments | « crypto/nss_util.cc ('k') | net/disk_cache/blockfile/block_bitmaps_v3.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/x509_certificate.cc
diff --git a/net/cert/x509_certificate.cc b/net/cert/x509_certificate.cc
index 0e410addb8e7359be239b1bbba5448644be573e8..880d487308be1cf7d85f47f7d41efe76739d6320 100644
--- a/net/cert/x509_certificate.cc
+++ b/net/cert/x509_certificate.cc
@@ -158,7 +158,9 @@ void X509CertificateCache::InsertOrUpdate(
// be guarded by the lock.
if (old_handle) {
X509Certificate::FreeOSCertHandle(old_handle);
- DHISTOGRAM_COUNTS("X509CertificateReuseCount", 1);
+#ifndef NDEBUG
+ LOCAL_HISTOGRAM_BOOLEAN("X509CertificateReuseCount", true);
+#endif
}
}
« no previous file with comments | « crypto/nss_util.cc ('k') | net/disk_cache/blockfile/block_bitmaps_v3.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698