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

Issue 2811183003: Change Cronet's "disable_ipv6" to "disable_ipv6_on_wifi" (Closed)

Created:
3 years, 8 months ago by mgersh
Modified:
3 years, 8 months ago
Reviewers:
pauljensen, mrtegg
CC:
chromium-reviews, cbentzel+watch_chromium.org, fuzzing_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Change Cronet's "disable_ipv6" to "disable_ipv6_on_wifi" The new option is implemented in HostResolverImpl as an assumption that IPv6 is unreachable when the current connection is wifi. In order to make this testable, the tests that used to override IsIPv6Reachable() now override IsGloballyReachable(). BUG=696569 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester Review-Url: https://codereview.chromium.org/2811183003 Cr-Commit-Position: refs/heads/master@{#464522} Committed: https://chromium.googlesource.com/chromium/src/+/af9a9230d0afc8c8ba34f30a2a12fafc3ae144e4

Patch Set 1 #

Total comments: 11

Patch Set 2 : comments #

Patch Set 3 : MockNetworkChangeNotifier #

Total comments: 12

Patch Set 4 : more comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -223 lines) Patch
M components/cronet/url_request_context_config.cc View 1 2 3 4 chunks +11 lines, -11 lines 0 comments Download
M components/cronet/url_request_context_config_unittest.cc View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M net/BUILD.gn View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
A + net/base/mock_network_change_notifier.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
A + net/base/mock_network_change_notifier.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/dns/fuzzed_host_resolver.h View 1 chunk +2 lines, -1 line 0 comments Download
M net/dns/fuzzed_host_resolver.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/dns/host_resolver.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M net/dns/host_resolver.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M net/dns/host_resolver_impl.h View 1 2 3 3 chunks +12 lines, -1 line 0 comments Download
M net/dns/host_resolver_impl.cc View 1 2 3 5 chunks +50 lines, -33 lines 0 comments Download
M net/dns/host_resolver_impl_unittest.cc View 1 2 3 3 chunks +85 lines, -1 line 0 comments Download
M net/dns/mapped_host_resolver.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M net/dns/mapped_host_resolver.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
D net/quic/chromium/mock_network_change_notifier.h View 1 2 1 chunk +0 lines, -74 lines 0 comments Download
D net/quic/chromium/mock_network_change_notifier.cc View 1 2 1 chunk +0 lines, -88 lines 0 comments Download
M net/quic/chromium/network_connection_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/quic/chromium/quic_network_transaction_unittest.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M net/quic/chromium/quic_stream_factory_test.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (10 generated)
mgersh
PTAL. I'm going to revert the default address family stuff (https://codereview.chromium.org/2709393007/) in a separate CL ...
3 years, 8 months ago (2017-04-12 14:55:58 UTC) #6
pauljensen
https://codereview.chromium.org/2811183003/diff/20001/net/dns/host_resolver_impl.cc File net/dns/host_resolver_impl.cc (right): https://codereview.chromium.org/2811183003/diff/20001/net/dns/host_resolver_impl.cc#newcode2445 net/dns/host_resolver_impl.cc:2445: bool HostResolverImpl::IsGloballyReachable(const IPAddress& dest, why is this moved? https://codereview.chromium.org/2811183003/diff/20001/net/dns/host_resolver_impl.h ...
3 years, 8 months ago (2017-04-12 18:16:40 UTC) #7
mgersh
https://codereview.chromium.org/2811183003/diff/20001/net/dns/host_resolver_impl.cc File net/dns/host_resolver_impl.cc (right): https://codereview.chromium.org/2811183003/diff/20001/net/dns/host_resolver_impl.cc#newcode2445 net/dns/host_resolver_impl.cc:2445: bool HostResolverImpl::IsGloballyReachable(const IPAddress& dest, On 2017/04/12 18:16:40, pauljensen wrote: ...
3 years, 8 months ago (2017-04-12 18:26:43 UTC) #8
pauljensen
https://codereview.chromium.org/2811183003/diff/20001/net/dns/host_resolver_impl.h File net/dns/host_resolver_impl.h (right): https://codereview.chromium.org/2811183003/diff/20001/net/dns/host_resolver_impl.h#newcode368 net/dns/host_resolver_impl.h:368: NetworkChangeNotifier::ConnectionType current_connection_type_; On 2017/04/12 18:26:42, mgersh wrote: > On ...
3 years, 8 months ago (2017-04-12 18:58:11 UTC) #9
mgersh
https://codereview.chromium.org/2811183003/diff/20001/net/dns/host_resolver_impl.h File net/dns/host_resolver_impl.h (right): https://codereview.chromium.org/2811183003/diff/20001/net/dns/host_resolver_impl.h#newcode368 net/dns/host_resolver_impl.h:368: NetworkChangeNotifier::ConnectionType current_connection_type_; On 2017/04/12 18:58:11, pauljensen wrote: > On ...
3 years, 8 months ago (2017-04-13 14:57:10 UTC) #10
pauljensen
lgtm module some simple comments https://codereview.chromium.org/2811183003/diff/20001/net/dns/host_resolver_impl.cc File net/dns/host_resolver_impl.cc (right): https://codereview.chromium.org/2811183003/diff/20001/net/dns/host_resolver_impl.cc#newcode2445 net/dns/host_resolver_impl.cc:2445: bool HostResolverImpl::IsGloballyReachable(const IPAddress& dest, ...
3 years, 8 months ago (2017-04-13 17:17:02 UTC) #11
mgersh
Thanks! https://codereview.chromium.org/2811183003/diff/60001/components/cronet/url_request_context_config.cc File components/cronet/url_request_context_config.cc (right): https://codereview.chromium.org/2811183003/diff/60001/components/cronet/url_request_context_config.cc#newcode85 components/cronet/url_request_context_config.cc:85: // Disable IPv6. This should almost never be ...
3 years, 8 months ago (2017-04-13 19:07:20 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2811183003/80001
3 years, 8 months ago (2017-04-13 19:07:59 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:80001) as https://chromium.googlesource.com/chromium/src/+/af9a9230d0afc8c8ba34f30a2a12fafc3ae144e4
3 years, 8 months ago (2017-04-13 20:20:02 UTC) #18
mrtegg
lgtm
3 years, 8 months ago (2017-04-13 20:24:18 UTC) #20
mrtegg
3 years, 8 months ago (2017-04-13 20:26:32 UTC) #21
Message was sent while issue was closed.

          

Powered by Google App Engine
This is Rietveld 408576698