1. 06 Nov, 2018 38 commits
  2. 05 Nov, 2018 2 commits
    • Eric Orth's avatar
      Disallow fallback with DNS source · 60931741
      Eric Orth authored
      On built-in resolver failures, we sometimes fallback and try again with
      the system resolver. This is not desirable when the source is explicitly
      set to DNS as we should then only resolve using the built-in resolver.
      
      Also changed the "disabling" of DnsClient after errors that succeed on
      fallback. Should only opportunistically affect requests that can
      fallback.  When we cannot fallback (e.g. due to being a DNS request),
      DnsClient will still be used.
      
      Also changed the behavior of requesting DNS with the DnsClient disabled.
      Subsequent requests match that behavior and return an error instead of
      DCHECKing.
      
      Bug: 846423
      Change-Id: If9e20e32e3e95aad7bd9e09b66bcb00808b95b43
      Reviewed-on: https://chromium-review.googlesource.com/c/1313448
      Commit-Queue: Eric Orth <ericorth@chromium.org>
      Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#605519}
      60931741
    • John Abd-El-Malek's avatar
      Fix safe search policy not working. · d8b32e5e
      John Abd-El-Malek authored
      This broke for the non-network-service path in r579953 because the new URL from the
      GoogleURLLoaderThrottle wasn't being sent to ResourceDispatcherHost.
      
      While I had added tests to ensure that the correct network request is made, there was a bug in how
      NavigationURLLoaderImpl called the URLLoaderInterceptor in the non-network service path. It was
      giving interceptors the ResourceRequest structure that wasn't used, instead of recreating it again
      from the NavigationRequestInfo that would be used to make the network request.
      
      Bug: 899268
      Change-Id: I248c8b0614aab803a2a916a1e55d91acbed2e28e
      Reviewed-on: https://chromium-review.googlesource.com/c/1317865Reviewed-by: default avatarNasko Oskov <nasko@chromium.org>
      Commit-Queue: John Abd-El-Malek <jam@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#605518}
      d8b32e5e