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

Issue 1163903002: Remove "Default Address Family" behavior from the HostResolver. (Closed)

Created:
5 years, 6 months ago by cbentzel
Modified:
5 years, 6 months ago
Reviewers:
pauljensen
CC:
chromium-reviews, cbentzel+watch_chromium.org, eroman, arv+watch_chromium.org, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove "Default Address Family" behavior from the HostResolver. This behavior was used to either force IPv4 resolution on dual-stack devices (using the --disable-ipv6 command-line flag) or to force IPv6 resolution. Now that the flags have gone away, this behavior is no longer needed in the HostResolver. BUG=344685 Committed: https://crrev.com/1906f870be1bb55d447d101fc7ebac296a9cc9ce Cr-Commit-Position: refs/heads/master@{#333062}

Patch Set 1 #

Patch Set 2 : Diff relative to other changes #

Patch Set 3 : Another rebase try #

Patch Set 4 : Fix one test #

Patch Set 5 : Fix all HostResolverImpl unit_tests #

Patch Set 6 : Override IPv6 reachability tests for unit tests #

Total comments: 4

Patch Set 7 : No need for protected #

Total comments: 7

Patch Set 8 : Address Paul's comments #

Patch Set 9 : Fix whitespace #

Patch Set 10 : DualHosts #

Patch Set 11 : Adjust comment on TestHostResolverImpl #

Total comments: 7

Patch Set 12 : TestHostResolverImpl style nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -185 lines) Patch
M net/dns/host_resolver.h View 1 chunk +0 lines, -7 lines 0 comments Download
M net/dns/host_resolver.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M net/dns/host_resolver_impl.h View 1 2 3 4 5 6 4 chunks +1 line, -10 lines 0 comments Download
M net/dns/host_resolver_impl.cc View 4 chunks +5 lines, -27 lines 0 comments Download
M net/dns/host_resolver_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 30 chunks +63 lines, -137 lines 0 comments Download

Messages

Total messages: 20 (4 generated)
cbentzel
5 years, 6 months ago (2015-06-03 13:15:47 UTC) #2
cbentzel
This uses the virtual method for the IPv6 reachability tests. I also considered bringing back ...
5 years, 6 months ago (2015-06-03 13:27:52 UTC) #3
mmenke
https://codereview.chromium.org/1163903002/diff/100001/net/dns/host_resolver_impl.h File net/dns/host_resolver_impl.h (right): https://codereview.chromium.org/1163903002/diff/100001/net/dns/host_resolver_impl.h#newcode150 net/dns/host_resolver_impl.h:150: virtual bool IsIPv6Reachable(const BoundNetLog& net_log); Drive-by nit: This doesn't ...
5 years, 6 months ago (2015-06-03 13:31:03 UTC) #5
cbentzel
https://codereview.chromium.org/1163903002/diff/100001/net/dns/host_resolver_impl.h File net/dns/host_resolver_impl.h (right): https://codereview.chromium.org/1163903002/diff/100001/net/dns/host_resolver_impl.h#newcode150 net/dns/host_resolver_impl.h:150: virtual bool IsIPv6Reachable(const BoundNetLog& net_log); On 2015/06/03 13:31:03, mmenke ...
5 years, 6 months ago (2015-06-03 15:43:19 UTC) #6
pauljensen
https://codereview.chromium.org/1163903002/diff/120001/net/dns/host_resolver_impl_unittest.cc File net/dns/host_resolver_impl_unittest.cc (left): https://codereview.chromium.org/1163903002/diff/120001/net/dns/host_resolver_impl_unittest.cc#oldcode1831 net/dns/host_resolver_impl_unittest.cc:1831: resolver_->SetDefaultAddressFamily(ADDRESS_FAMILY_IPV4); By removing this, have you stopped this test ...
5 years, 6 months ago (2015-06-03 16:26:06 UTC) #7
cbentzel
https://codereview.chromium.org/1163903002/diff/120001/net/dns/host_resolver_impl_unittest.cc File net/dns/host_resolver_impl_unittest.cc (left): https://codereview.chromium.org/1163903002/diff/120001/net/dns/host_resolver_impl_unittest.cc#oldcode1831 net/dns/host_resolver_impl_unittest.cc:1831: resolver_->SetDefaultAddressFamily(ADDRESS_FAMILY_IPV4); On 2015/06/03 16:26:06, pauljensen wrote: > By removing ...
5 years, 6 months ago (2015-06-03 22:58:08 UTC) #8
cbentzel
https://codereview.chromium.org/1163903002/diff/120001/net/dns/host_resolver_impl_unittest.cc File net/dns/host_resolver_impl_unittest.cc (left): https://codereview.chromium.org/1163903002/diff/120001/net/dns/host_resolver_impl_unittest.cc#oldcode1831 net/dns/host_resolver_impl_unittest.cc:1831: resolver_->SetDefaultAddressFamily(ADDRESS_FAMILY_IPV4); On 2015/06/03 22:58:08, cbentzel wrote: > On 2015/06/03 ...
5 years, 6 months ago (2015-06-04 13:06:42 UTC) #9
cbentzel
On 2015/06/04 13:06:42, cbentzel wrote: > https://codereview.chromium.org/1163903002/diff/120001/net/dns/host_resolver_impl_unittest.cc > File net/dns/host_resolver_impl_unittest.cc (left): > > https://codereview.chromium.org/1163903002/diff/120001/net/dns/host_resolver_impl_unittest.cc#oldcode1831 > ...
5 years, 6 months ago (2015-06-04 13:35:39 UTC) #10
pauljensen
Cool, it looks like you restored the behavior of that test. https://codereview.chromium.org/1163903002/diff/200001/net/dns/host_resolver_impl_unittest.cc File net/dns/host_resolver_impl_unittest.cc (right): ...
5 years, 6 months ago (2015-06-05 14:58:47 UTC) #12
cbentzel
Thanks for the review. https://codereview.chromium.org/1163903002/diff/200001/net/dns/host_resolver_impl_unittest.cc File net/dns/host_resolver_impl_unittest.cc (right): https://codereview.chromium.org/1163903002/diff/200001/net/dns/host_resolver_impl_unittest.cc#newcode426 net/dns/host_resolver_impl_unittest.cc:426: : HostResolverImpl(options, net_log), ipv6_reachable_(true) {} ...
5 years, 6 months ago (2015-06-05 15:25:43 UTC) #13
pauljensen
https://codereview.chromium.org/1163903002/diff/200001/net/dns/host_resolver_impl_unittest.cc File net/dns/host_resolver_impl_unittest.cc (right): https://codereview.chromium.org/1163903002/diff/200001/net/dns/host_resolver_impl_unittest.cc#newcode1784 net/dns/host_resolver_impl_unittest.cc:1784: ChangeDnsConfig(config); On 2015/06/05 15:25:43, cbentzel wrote: > On 2015/06/05 ...
5 years, 6 months ago (2015-06-05 15:45:55 UTC) #14
cbentzel
On 2015/06/05 15:45:55, pauljensen wrote: > https://codereview.chromium.org/1163903002/diff/200001/net/dns/host_resolver_impl_unittest.cc > File net/dns/host_resolver_impl_unittest.cc (right): > > https://codereview.chromium.org/1163903002/diff/200001/net/dns/host_resolver_impl_unittest.cc#newcode1784 > ...
5 years, 6 months ago (2015-06-05 15:49:14 UTC) #15
pauljensen
> > Why not just modify the original line 1849 UNSPECIFIED->IPv4? > > I suppose ...
5 years, 6 months ago (2015-06-05 15:51:37 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163903002/220001
5 years, 6 months ago (2015-06-05 16:20:19 UTC) #18
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 6 months ago (2015-06-05 16:25:34 UTC) #19
commit-bot: I haz the power
5 years, 6 months ago (2015-06-05 16:26:18 UTC) #20
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/1906f870be1bb55d447d101fc7ebac296a9cc9ce
Cr-Commit-Position: refs/heads/master@{#333062}

Powered by Google App Engine
This is Rietveld 408576698