[DoH] Move kForceSecureDnsDohFallback to the network service [chromium/src : main]

0 views
Skip to first unread message

Andrew Williams (Gerrit)

unread,
Apr 2, 2026, 1:18:57 AM (3 days ago) Apr 2
to Kenichi Ishibashi, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org, network-ser...@chromium.org, net-r...@chromium.org
Attention needed from Andrew Williams and Kenichi Ishibashi

Andrew Williams voted and added 2 comments

Votes added by Andrew Williams

Commit-Queue+1

2 comments

Patchset-level comments
File-level comment, Patchset 7 (Latest):
Andrew Williams . resolved

Hi bashi@, could you take a preliminary look at this CL but ignoring the chrome/browser/net/ changes for now? This should be the last CL needed to run the DoH fallback upgrade experiment in M148. Thank you!

File chrome/browser/net/stub_resolver_config_reader_unittest.cc
Line 129, Patchset 7 (Latest): false /* force_check_parental_controls_for_automatic_mode */);
Andrew Williams . unresolved

Note: Skip this file for now, I split most of these changes off into https://chromium-review.googlesource.com/c/chromium/src/+/7723198 and plan to rebase this CL once that lands

Open in Gerrit

Related details

Attention is currently required from:
  • Andrew Williams
  • Kenichi Ishibashi
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If8816a39f5743a93a63d2d455dc2c2e3b80d5461
Gerrit-Change-Number: 7718918
Gerrit-PatchSet: 7
Gerrit-Owner: Andrew Williams <awi...@chromium.org>
Gerrit-Reviewer: Andrew Williams <awi...@chromium.org>
Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Kenichi Ishibashi <ba...@chromium.org>
Gerrit-Attention: Andrew Williams <awi...@chromium.org>
Gerrit-Comment-Date: Thu, 02 Apr 2026 05:18:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Kenichi Ishibashi (Gerrit)

unread,
Apr 2, 2026, 3:54:23 AM (3 days ago) Apr 2
to Andrew Williams, Brian Begnoche, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org, network-ser...@chromium.org, net-r...@chromium.org
Attention needed from Andrew Williams

Kenichi Ishibashi added 3 comments

Patchset-level comments
Kenichi Ishibashi . resolved

Looking good, one suggestion.

File chrome/browser/net/stub_resolver_config_reader_unittest.cc
Line 129, Patchset 7 (Latest): false /* force_check_parental_controls_for_automatic_mode */);
Andrew Williams . resolved

Note: Skip this file for now, I split most of these changes off into https://chromium-review.googlesource.com/c/chromium/src/+/7723198 and plan to rebase this CL once that lands

Kenichi Ishibashi

Acknowledged

File net/dns/dns_client.cc
Line 225, Patchset 7 (Latest): if (context->IsDohConfigFromFallbackDohNameservers()) {
Kenichi Ishibashi . unresolved

optional: Can we have a helper function that takes `context` and ensure the check order, and share the helper function in other places?

Probably we need to use `base::expected` to return FallbackFromSecureTransactionPreferredReason.

Open in Gerrit

Related details

Attention is currently required from:
  • Andrew Williams
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If8816a39f5743a93a63d2d455dc2c2e3b80d5461
Gerrit-Change-Number: 7718918
Gerrit-PatchSet: 7
Gerrit-Owner: Andrew Williams <awi...@chromium.org>
Gerrit-Reviewer: Andrew Williams <awi...@chromium.org>
Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
Gerrit-CC: Brian Begnoche <b...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Andrew Williams <awi...@chromium.org>
Gerrit-Comment-Date: Thu, 02 Apr 2026 07:53:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Andrew Williams <awi...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Andrew Williams (Gerrit)

unread,
Apr 2, 2026, 5:46:12 PM (2 days ago) Apr 2
to Takashi Toyoshima, Brian Begnoche, Kenichi Ishibashi, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org, network-ser...@chromium.org, net-r...@chromium.org
Attention needed from Kenichi Ishibashi and Takashi Toyoshima

Andrew Williams added 2 comments

Patchset-level comments
File-level comment, Patchset 8 (Latest):
Andrew Williams . resolved

Thanks bashi@, if you could take look at the chrome/browser/net/ changes as well now that'd be great!

Also, Takashi, PTAL at the change to enums.xml. Thanks!

File net/dns/dns_client.cc
Line 225, Patchset 7: if (context->IsDohConfigFromFallbackDohNameservers()) {
Kenichi Ishibashi . resolved

optional: Can we have a helper function that takes `context` and ensure the check order, and share the helper function in other places?

Probably we need to use `base::expected` to return FallbackFromSecureTransactionPreferredReason.

Andrew Williams

It seems like each of the checks is slightly different, so it might be difficult have one method that covers them all... If it's OK with you I'll just leave it this way, especially given that we will be removing all of this code once the experiment is over. Tentatively marking this as resolved.

Open in Gerrit

Related details

Attention is currently required from:
  • Kenichi Ishibashi
  • Takashi Toyoshima
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: If8816a39f5743a93a63d2d455dc2c2e3b80d5461
    Gerrit-Change-Number: 7718918
    Gerrit-PatchSet: 8
    Gerrit-Owner: Andrew Williams <awi...@chromium.org>
    Gerrit-Reviewer: Andrew Williams <awi...@chromium.org>
    Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
    Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
    Gerrit-CC: Brian Begnoche <b...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
    Gerrit-Attention: Kenichi Ishibashi <ba...@chromium.org>
    Gerrit-Comment-Date: Thu, 02 Apr 2026 21:46:08 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Kenichi Ishibashi <ba...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Kenichi Ishibashi (Gerrit)

    unread,
    Apr 2, 2026, 7:54:20 PM (2 days ago) Apr 2
    to Andrew Williams, Takashi Toyoshima, Brian Begnoche, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org, network-ser...@chromium.org, net-r...@chromium.org
    Attention needed from Andrew Williams and Takashi Toyoshima

    Kenichi Ishibashi voted and added 2 comments

    Votes added by Kenichi Ishibashi

    Code-Review+1

    2 comments

    Patchset-level comments
    Kenichi Ishibashi . resolved

    lgtm, thanks!

    File net/dns/dns_client.cc
    Line 225, Patchset 7: if (context->IsDohConfigFromFallbackDohNameservers()) {
    Kenichi Ishibashi . resolved

    optional: Can we have a helper function that takes `context` and ensure the check order, and share the helper function in other places?

    Probably we need to use `base::expected` to return FallbackFromSecureTransactionPreferredReason.

    Andrew Williams

    It seems like each of the checks is slightly different, so it might be difficult have one method that covers them all... If it's OK with you I'll just leave it this way, especially given that we will be removing all of this code once the experiment is over. Tentatively marking this as resolved.

    Kenichi Ishibashi

    Ack, it would be helpful if we could a comment saying that these logic will be removed once the experiment is over.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Andrew Williams
    • Takashi Toyoshima
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: If8816a39f5743a93a63d2d455dc2c2e3b80d5461
      Gerrit-Change-Number: 7718918
      Gerrit-PatchSet: 8
      Gerrit-Owner: Andrew Williams <awi...@chromium.org>
      Gerrit-Reviewer: Andrew Williams <awi...@chromium.org>
      Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
      Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
      Gerrit-CC: Brian Begnoche <b...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
      Gerrit-Attention: Andrew Williams <awi...@chromium.org>
      Gerrit-Comment-Date: Thu, 02 Apr 2026 23:53:51 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Kenichi Ishibashi <ba...@chromium.org>
      Comment-In-Reply-To: Andrew Williams <awi...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Takashi Toyoshima (Gerrit)

      unread,
      Apr 3, 2026, 2:05:51 AM (yesterday) Apr 3
      to Andrew Williams, Kenichi Ishibashi, Brian Begnoche, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org, network-ser...@chromium.org, net-r...@chromium.org
      Attention needed from Andrew Williams

      Takashi Toyoshima voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Andrew Williams
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: If8816a39f5743a93a63d2d455dc2c2e3b80d5461
      Gerrit-Change-Number: 7718918
      Gerrit-PatchSet: 8
      Gerrit-Owner: Andrew Williams <awi...@chromium.org>
      Gerrit-Reviewer: Andrew Williams <awi...@chromium.org>
      Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
      Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
      Gerrit-CC: Brian Begnoche <b...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-Attention: Andrew Williams <awi...@chromium.org>
      Gerrit-Comment-Date: Fri, 03 Apr 2026 06:05:11 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Andrew Williams (Gerrit)

      unread,
      Apr 3, 2026, 1:24:14 PM (yesterday) Apr 3
      to Takashi Toyoshima, Kenichi Ishibashi, Brian Begnoche, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org, network-ser...@chromium.org, net-r...@chromium.org

      Andrew Williams voted and added 1 comment

      Votes added by Andrew Williams

      Commit-Queue+2

      1 comment

      Patchset-level comments
      Andrew Williams . resolved

      Thanks everyone! I did some manual testing of this and it looks good to me as well.

      Open in Gerrit

      Related details

      Attention set is empty
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: If8816a39f5743a93a63d2d455dc2c2e3b80d5461
      Gerrit-Change-Number: 7718918
      Gerrit-PatchSet: 8
      Gerrit-Owner: Andrew Williams <awi...@chromium.org>
      Gerrit-Reviewer: Andrew Williams <awi...@chromium.org>
      Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
      Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
      Gerrit-CC: Brian Begnoche <b...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-Comment-Date: Fri, 03 Apr 2026 17:24:04 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Apr 3, 2026, 2:33:55 PM (yesterday) Apr 3
      to Andrew Williams, Takashi Toyoshima, Kenichi Ishibashi, Brian Begnoche, Chromium Metrics Reviews, AyeAye, chromium...@chromium.org, asvitkine...@chromium.org, network-ser...@chromium.org, net-r...@chromium.org

      Chromium LUCI CQ submitted the change

      Change information

      Commit message:
      [DoH] Move kForceSecureDnsDohFallback to the network service

      This moves the kForceSecureDnsDohFallback feature flag check to the
      network service so that it is checked after we know:
      - we can read the system DNS config
      - the system isn't using a DNS provider that already supports
      auto-upgrade
      - the system isn't using a loopback or local network DNS server
      - the profile has opted in to Enhanced Safe Browsing

      This allows our experiment to only activate users into the experiment
      after all of these conditions have evaluated to true, so the metrics
      only surface changes from users that are actually eligible for the new
      functionality.

      NO_IFTTT=Looks like it's not picking up the LINT tag movement for some reason.
      Bug: 490045356
      Change-Id: If8816a39f5743a93a63d2d455dc2c2e3b80d5461
      Commit-Queue: Andrew Williams <awi...@chromium.org>
      Reviewed-by: Kenichi Ishibashi <ba...@chromium.org>
      Reviewed-by: Takashi Toyoshima <toyo...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1609880}
      Files:
      • M chrome/browser/net/stub_resolver_config_reader.cc
      • M chrome/browser/net/stub_resolver_config_reader_unittest.cc
      • M net/dns/canary_domain_service_unittest.cc
      • M net/dns/dns_client.cc
      • M net/dns/dns_client.h
      • M net/dns/dns_client_unittest.cc
      • M net/dns/dns_transaction.cc
      • M net/dns/dns_transaction_unittest.cc
      • M net/dns/resolve_context.cc
      • M services/network/network_context_unittest.cc
      • M tools/metrics/histograms/metadata/net/enums.xml
      Change size: M
      Delta: 11 files changed, 160 insertions(+), 76 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Kenichi Ishibashi, +1 by Takashi Toyoshima
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: If8816a39f5743a93a63d2d455dc2c2e3b80d5461
      Gerrit-Change-Number: 7718918
      Gerrit-PatchSet: 9
      Gerrit-Owner: Andrew Williams <awi...@chromium.org>
      Gerrit-Reviewer: Andrew Williams <awi...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
      Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
      Gerrit-CC: Brian Begnoche <b...@chromium.org>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages