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

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: Rebased. 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') | no next file with comments »
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 edab00e1e87c2ad5244ca3244a1a1bd1687b3500..3f4d3b3831882ce2d339ae7588c7e0f226ab0552 100644
--- a/net/base/host_resolver_impl.cc
+++ b/net/base/host_resolver_impl.cc
@@ -1383,9 +1383,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698