summaryrefslogtreecommitdiffstats
path: root/net/proxy
diff options
context:
space:
mode:
authorstevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-27 03:44:18 +0000
committerstevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-27 03:44:18 +0000
commit86a782ce247e94a7b4da42f79603ba372870cbfc (patch)
tree9773ae2e6b57df3e3c5536e7a52fc45211461de8 /net/proxy
parenta14c261b32f0915842c305dfbc958c49af6905da (diff)
downloadchromium_src-86a782ce247e94a7b4da42f79603ba372870cbfc.zip
chromium_src-86a782ce247e94a7b4da42f79603ba372870cbfc.tar.gz
chromium_src-86a782ce247e94a7b4da42f79603ba372870cbfc.tar.bz2
Flag myIpAddress requests for chromeos
This is a follow-up to https://codereview.chromium.org/238433003 We need to differentiate between myIpAddress requests and other localhost requests so that local web servers and tests work correctly. BUG=387109 Review URL: https://codereview.chromium.org/355953002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280230 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy')
-rw-r--r--net/proxy/proxy_resolver_v8_tracing.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/proxy/proxy_resolver_v8_tracing.cc b/net/proxy/proxy_resolver_v8_tracing.cc
index f772dc1..9be256a4 100644
--- a/net/proxy/proxy_resolver_v8_tracing.cc
+++ b/net/proxy/proxy_resolver_v8_tracing.cc
@@ -973,7 +973,12 @@ HostResolver::RequestInfo ProxyResolverV8Tracing::Job::MakeDnsRequestInfo(
}
HostResolver::RequestInfo info(host_port);
-
+ // Flag myIpAddress requests.
+ if (op == MY_IP_ADDRESS || op == MY_IP_ADDRESS_EX) {
+ // TODO: Provide a RequestInfo construction mechanism that does not
+ // require a hostname and sets is_my_ip_address to true instead of this.
+ info.set_is_my_ip_address(true);
+ }
// The non-ex flavors are limited to IPv4 results.
if (op == MY_IP_ADDRESS || op == DNS_RESOLVE) {
info.set_address_family(ADDRESS_FAMILY_IPV4);