Enable kAsyncQuicSession on non-mobile platforms. [chromium/src : main]

7 views
Skip to first unread message

Liza Burakova (Gerrit)

unread,
May 25, 2023, 11:43:14 AM5/25/23
to David Benjamin, bnc+...@chromium.org, net-r...@chromium.org, Will Harris

Attention is currently required from: David Benjamin.

Liza Burakova would like David Benjamin to review this change.

View Change

Enable kAsyncQuicSession on non-mobile platforms.

This change enables kAsyncQuicSession by default on platforms that
cronet does not run on. This flag was originally set up to ensure
cronet didn't break in subtle ways from a complex change, but it
needs to be on for the Windows sandbox.

Bug: 1448725
Change-Id: I3bc23d93083ec094b006798cc539b21e05633eb5
---
M net/base/features.cc
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/net/base/features.cc b/net/base/features.cc
index c1f7597..a7b8192 100644
--- a/net/base/features.cc
+++ b/net/base/features.cc
@@ -316,10 +316,17 @@
base::FEATURE_DISABLED_BY_DEFAULT);
#endif

-// A flag to use asynchronous session creation for new QUIC sessions.
+// A flag to use asynchronous session creation for new QUIC sessions. It is
+// disabled by default on iOS and Android builds to ensure it doesn't ship on
+// cronet.
+#if BUILDFLAG(IS_ANDROID) || BUILD(IS_IOS)
BASE_FEATURE(kAsyncQuicSession,
"AsyncQuicSession",
base::FEATURE_DISABLED_BY_DEFAULT);
+#endif
+BASE_FEATURE(kAsyncQuicSession,
+ "AsyncQuicSession",
+ base::FEATURE_ENABLED_BY_DEFAULT);

// IP protection experiment configuration settings
BASE_FEATURE(kEnableIpProtectionProxy,

To view, visit change 4567705. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I3bc23d93083ec094b006798cc539b21e05633eb5
Gerrit-Change-Number: 4567705
Gerrit-PatchSet: 1
Gerrit-Owner: Liza Burakova <li...@chromium.org>
Gerrit-Reviewer: David Benjamin <davi...@chromium.org>
Gerrit-Reviewer: Liza Burakova <li...@chromium.org>
Gerrit-CC: Will Harris <w...@chromium.org>
Gerrit-Attention: David Benjamin <davi...@chromium.org>

Liza Burakova (Gerrit)

unread,
May 25, 2023, 11:43:19 AM5/25/23
to bnc+...@chromium.org, net-r...@chromium.org, David Benjamin, Will Harris, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: David Benjamin.

    To view, visit change 4567705. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I3bc23d93083ec094b006798cc539b21e05633eb5
    Gerrit-Change-Number: 4567705
    Gerrit-PatchSet: 1
    Gerrit-Owner: Liza Burakova <li...@chromium.org>
    Gerrit-Reviewer: David Benjamin <davi...@chromium.org>
    Gerrit-Reviewer: Liza Burakova <li...@chromium.org>
    Gerrit-CC: Will Harris <w...@chromium.org>
    Gerrit-Attention: David Benjamin <davi...@chromium.org>
    Gerrit-Comment-Date: Thu, 25 May 2023 15:43:11 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No

    Will Harris (Gerrit)

    unread,
    May 25, 2023, 12:15:15 PM5/25/23
    to Liza Burakova, bnc+...@chromium.org, net-r...@chromium.org, David Benjamin, Will Harris, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: David Benjamin, Liza Burakova.

    View Change

    1 comment:

    To view, visit change 4567705. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I3bc23d93083ec094b006798cc539b21e05633eb5
    Gerrit-Change-Number: 4567705
    Gerrit-PatchSet: 2
    Gerrit-Owner: Liza Burakova <li...@chromium.org>
    Gerrit-Reviewer: David Benjamin <davi...@chromium.org>
    Gerrit-Reviewer: Liza Burakova <li...@chromium.org>
    Gerrit-CC: Will Harris <w...@chromium.org>
    Gerrit-Attention: David Benjamin <davi...@chromium.org>
    Gerrit-Attention: Liza Burakova <li...@chromium.org>
    Gerrit-Comment-Date: Thu, 25 May 2023 16:15:05 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    David Benjamin (Gerrit)

    unread,
    May 25, 2023, 12:30:12 PM5/25/23
    to Liza Burakova, bnc+...@chromium.org, net-r...@chromium.org, Will Harris, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Liza Burakova.

    View Change

    2 comments:

    • File net/base/features.cc:

      • Patch Set #2, Line 322: #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_IOS)

        FWIW, we also have a `CRONET_BUILD` define if we specifically want to exclude Cronet. (Your call. I don't have context here.)

      • Patch Set #2, Line 326: #endif

        Think you need a `#else` here. Android's getting the feature defined twice right now. :-)

    To view, visit change 4567705. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I3bc23d93083ec094b006798cc539b21e05633eb5
    Gerrit-Change-Number: 4567705
    Gerrit-PatchSet: 2
    Gerrit-Owner: Liza Burakova <li...@chromium.org>
    Gerrit-Reviewer: David Benjamin <davi...@chromium.org>
    Gerrit-Reviewer: Liza Burakova <li...@chromium.org>
    Gerrit-CC: Will Harris <w...@chromium.org>
    Gerrit-Attention: Liza Burakova <li...@chromium.org>
    Gerrit-Comment-Date: Thu, 25 May 2023 16:30:02 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Liza Burakova (Gerrit)

    unread,
    May 25, 2023, 12:34:04 PM5/25/23
    to bnc+...@chromium.org, net-r...@chromium.org, David Benjamin, Will Harris, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: David Benjamin.

    View Change

    2 comments:

    • File net/base/features.cc:

      • FWIW, we also have a `CRONET_BUILD` define if we specifically want to exclude Cronet. (Your call. […]

        Oh CRONET_BUILD works perfectly for this, actually. Thanks I'll do that.

      • Think you need a `#else` here. Android's getting the feature defined twice right now. […]

        Yep, I realized that, I was over eager in getting this out from a WIP state oops.

    To view, visit change 4567705. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I3bc23d93083ec094b006798cc539b21e05633eb5
    Gerrit-Change-Number: 4567705
    Gerrit-PatchSet: 2
    Gerrit-Owner: Liza Burakova <li...@chromium.org>
    Gerrit-Reviewer: David Benjamin <davi...@chromium.org>
    Gerrit-Reviewer: Liza Burakova <li...@chromium.org>
    Gerrit-CC: Will Harris <w...@chromium.org>
    Gerrit-Attention: David Benjamin <davi...@chromium.org>
    Gerrit-Comment-Date: Thu, 25 May 2023 16:33:55 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: David Benjamin <davi...@chromium.org>

    Liza Burakova (Gerrit)

    unread,
    Oct 2, 2023, 4:31:40 PM10/2/23
    to bnc+...@chromium.org, net-r...@chromium.org, David Benjamin, Will Harris, Chromium LUCI CQ, chromium...@chromium.org

    Liza Burakova abandoned this change.

    View Change

    Abandoned

    To view, visit change 4567705. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: abandon
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I3bc23d93083ec094b006798cc539b21e05633eb5
    Gerrit-Change-Number: 4567705
    Gerrit-PatchSet: 3
    Reply all
    Reply to author
    Forward
    0 new messages