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

Unified Diff: net/base/host_resolver_impl.cc

Issue 10543168: [net/dns] Instrument DnsConfigService to measure performance and failures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test expectations on win' Created 8 years, 6 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 | « no previous file | net/dns/dns_config_service.h » ('j') | net/dns/dns_config_service.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/host_resolver_impl.cc
diff --git a/net/base/host_resolver_impl.cc b/net/base/host_resolver_impl.cc
index 811a002c599b73a9e4ef7a4b264b41016687bce9..d184de7fc565313bc383e13a97c30d1c17feba3d 100644
--- a/net/base/host_resolver_impl.cc
+++ b/net/base/host_resolver_impl.cc
@@ -1355,9 +1355,8 @@ class HostResolverImpl::Job : public PrioritizedDispatcher::Job {
SetPortOnAddressList(requests_->front()->info().port(), &list);
// Record this histogram here, when we know the system has a valid DNS
// configuration.
- UMA_HISTOGRAM_ENUMERATION("AsyncDNS.HaveDnsConfig",
- resolver_->received_dns_config_ ? 1 : 0,
- 2);
+ UMA_HISTOGRAM_BOOLEAN("AsyncDNS.HaveDnsConfig",
+ resolver_->received_dns_config_);
}
if ((net_error != ERR_ABORTED) &&
« no previous file with comments | « no previous file | net/dns/dns_config_service.h » ('j') | net/dns/dns_config_service.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698