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

Unified Diff: chrome/browser/net/url_info.cc

Issue 484603006: Add LOCAL_ prefix to non-UMA histogram macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: chrome/browser/net/url_info.cc
diff --git a/chrome/browser/net/url_info.cc b/chrome/browser/net/url_info.cc
index 4069a2ac1a39cfa6e40223aee862f55d01573ddf..48ac54ca5662be58400c3b6d56e4c7557f6526ed 100644
--- a/chrome/browser/net/url_info.cc
+++ b/chrome/browser/net/url_info.cc
@@ -169,9 +169,11 @@ void UrlInfo::SetNoSuchNameState() {
DCHECK(ASSIGNED == state_);
state_ = NO_SUCH_NAME;
resolve_duration_ = GetDuration();
+#ifndef NDEBUG
if (MaxNonNetworkDnsLookupDuration() <= resolve_duration_) {
- DHISTOGRAM_TIMES("DNS.PrefetchNotFoundName", resolve_duration_);
+ LOCAL_HISTOGRAM_TIMES("DNS.PrefetchNotFoundName", resolve_duration_);
}
+#endif
sequence_number_ = sequence_counter++;
DLogResultsStats("DNS PrefetchNotFound");
}

Powered by Google App Engine
This is Rietveld 408576698