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

Unified Diff: net/dns/host_resolver_impl.cc

Issue 141023002: Label IPv6 reachability checks in NetLog (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 11 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 | « net/base/net_log_source_type_list.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/host_resolver_impl.cc
diff --git a/net/dns/host_resolver_impl.cc b/net/dns/host_resolver_impl.cc
index f90df0463afdf9a89dd2b9825a7b83dd4b8973ef..a1ab0e5b9b4f54bf12e65ee4e91e40b1b5a2f160 100644
--- a/net/dns/host_resolver_impl.cc
+++ b/net/dns/host_resolver_impl.cc
@@ -2155,7 +2155,12 @@ HostResolverImpl::Key HostResolverImpl::GetEffectiveKeyForRequest(
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x88 };
IPAddressNumber address(kIPv6Address,
kIPv6Address + arraysize(kIPv6Address));
- bool rv6 = IsGloballyReachable(address, net_log);
+ BoundNetLog probe_net_log = BoundNetLog::Make(
+ net_log.net_log(), NetLog::SOURCE_IPV6_REACHABILITY_CHECK);
+ probe_net_log.BeginEvent(NetLog::TYPE_IPV6_REACHABILITY_CHECK,
+ net_log.source().ToEventParametersCallback());
+ bool rv6 = IsGloballyReachable(address, probe_net_log);
+ probe_net_log.EndEvent(NetLog::TYPE_IPV6_REACHABILITY_CHECK);
if (rv6)
net_log.AddEvent(NetLog::TYPE_HOST_RESOLVER_IMPL_IPV6_SUPPORTED);
« no previous file with comments | « net/base/net_log_source_type_list.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698