-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make IsIPv6Reachable comply with network-bound URLRequestContexts
Currently, IsIPv6Reachable checks if the current default network is a WiFi network. This is not correct for network-bound URLRequestContexts where the default network network won't necessarily be used for DNS lookups. Allow instead to also create network-bound HostResolverManagers through CreateNetworkBoundHostResolverManager. This is to allow each network-bound URLRequestContext to use its own standalone HostResolverManager (as agreed in crbug.com/1309094). Note: network-bound HostResolverManagers don't need to listen to network changes event for the same reason as other network-bound entities. To keep things working this CL also updates network-bound lookups unittests and URLRequestContextBuilder::BindToNetwork to make use of CreateNetworkBoundHostResolverManager and CreateStandaloneNetworkBoundResolver respectively. Bug: 1309094 Change-Id: I84e00c95692255c34866b4babd546b14bacaec63 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3555673 Reviewed-by: Adam Rice <ricea@chromium.org> Commit-Queue: Stefano Duo <stefanoduo@google.com> Cr-Commit-Position: refs/heads/main@{#988896}
- Loading branch information
1 parent
e4ee7eb
commit f29d35e
Showing
6 changed files
with
183 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.