Repository navigation
aosp: Fix --disable-quic default not applied on AOSP - #13482
Merged
Merged
Conversation
Contributor
|
Contributor
🤖 Gemini Suggested Commit Message💡 Pro Tips for a Better Commit Message:
|
kjyoun
force-pushed
the
fix-aosp-disable-quic
branch
2 times, most recently
from
October 19, 2026 22:00
b60f93d to
d272452
Compare
kjyoun
marked this pull request as ready for review
October 19, 2026 22:06
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new build flag IS_COBALT_AOSP to correctly identify AOSP platforms, since BUILDFLAG(IS_ANDROID) is false for Cobalt core on AOSP (which is built with target_os = 'linux'). It updates the default command-line switches to disable QUIC on AOSP instead of Android, adds corresponding unit tests, and propagates the new build flag dependency. Feedback on the changes suggests making the _is_cobalt_aosp detection in cobalt/build/configs/BUILD.gn more robust by explicitly handling cases where starboard_path does not have a trailing slash.
kjyoun
force-pushed
the
fix-aosp-disable-quic
branch
from
October 19, 2026 22:25
d272452 to
8a41427
Compare
kjyoun
force-pushed
the
fix-aosp-disable-quic
branch
from
October 19, 2026 23:26
8a41427 to
7fe27ad
Compare
kjyoun
force-pushed
the
fix-aosp-disable-quic
branch
from
October 20, 2026 06:02
7fe27ad to
f8dfa2d
Compare
kjyoun
force-pushed
the
fix-aosp-disable-quic
branch
from
October 20, 2026 06:10
f8dfa2d to
82046d0
Compare
kjyoun
force-pushed
the
fix-aosp-disable-quic
branch
from
October 20, 2026 06:17
82046d0 to
415411e
Compare
kjyoun
force-pushed
the
fix-aosp-disable-quic
branch
from
October 20, 2026 06:26
415411e to
adbd075
Compare
kjyoun
force-pushed
the
fix-aosp-disable-quic
branch
from
October 20, 2026 06:29
adbd075 to
bb698d2
Compare
kjyoun
force-pushed
the
fix-aosp-disable-quic
branch
from
October 21, 2026 03:46
d0479d7 to
b3ba916
Compare
youtube#13468 moved AOSP's --disable-quic default into cobalt_switch_defaults_starboard.cc under BUILDFLAG(IS_ANDROID). That guard is never true there: the AOSP Cobalt core is an Evergreen build with target_os = "linux", so QUIC was back on for AOSP. Evergreen builds shouldn't differentiate platforms in the Cobalt core, so set AOSP's defaults in the AOSP Starboard layer instead. main_activity.cc builds the argv passed to the core and already adds --disable-dev-shm-usage; move both into a kDefaultSwitches list. Add starboard/aosp/shared/chromium_switches.h so these use constants rather than string literals. Chromium's ::switches constants aren't available in the AOSP Starboard toolchain (current_os = "android", //copied_base/base): - network_switches:: expands Chromium's header-only network_switch_list.h, so kDisableQuic matches ::switches::kDisableQuic. - base_switches::kDisableDevShmUsage copies the value from base/base_switches.cc. Also remove the dead BUILDFLAG(IS_ANDROID) blocks from cobalt_switch_defaults_starboard.cc and its test. The test's block (kUserLevelMemoryPressureSignalParams, kDisableQuic) has been unreachable since the file became Starboard-only (youtube#6046). Bug: 532158865
kjyoun
force-pushed
the
fix-aosp-disable-quic
branch
from
October 21, 2026 05:00
b3ba916 to
59ae414
Compare
ogarai
reviewed
Oct 21, 2026
cobalt_switch_defaults_starboard.cc no longer uses ::switches::kDisableQuic.
ogarai
approved these changes
Oct 21, 2026
kDefaultSwitches is already inside namespace starboard.
andrewsavage1
approved these changes
Oct 21, 2026
kjyoun
enabled auto-merge (squash)
October 21, 2026 20:44
briantting
pushed a commit
that referenced
this pull request
Oct 22, 2026
…n AOSP Refer to original PR: #13482 `BUILDFLAG(IS_ANDROID)` is never true in the AOSP Cobalt core (an Evergreen build with `target_os = "linux"`), so the `--disable-quic` default from #13468 was never applied, and QUIC was back on for AOSP. Evergreen builds shouldn't differentiate platforms in the Cobalt core, so set AOSP's defaults in the AOSP Starboard layer instead. - Add `--disable-quic` to `kDefaultSwitches` in `main_activity.cc`, next to the existing `--disable-dev-shm-usage`. - Add `starboard/aosp/shared/chromium_switches.h` so both use constants instead of string literals. Chromium's `::switches` constants aren't available in the AOSP Starboard toolchain. - Remove the dead `BUILDFLAG(IS_ANDROID)` blocks in `cobalt_switch_defaults_starboard.cc` and its test. They have been unreachable since the file became Starboard-only (#6046). Bug: 532158865 (cherry picked from commit b2908eb)
briantting
pushed a commit
that referenced
this pull request
Oct 27, 2026
…n AOSP Refer to original PR: #13482 `BUILDFLAG(IS_ANDROID)` is never true in the AOSP Cobalt core (an Evergreen build with `target_os = "linux"`), so the `--disable-quic` default from #13468 was never applied, and QUIC was back on for AOSP. Evergreen builds shouldn't differentiate platforms in the Cobalt core, so set AOSP's defaults in the AOSP Starboard layer instead. - Add `--disable-quic` to `kDefaultSwitches` in `main_activity.cc`, next to the existing `--disable-dev-shm-usage`. - Add `starboard/aosp/shared/chromium_switches.h` so both use constants instead of string literals. Chromium's `::switches` constants aren't available in the AOSP Starboard toolchain. - Remove the dead `BUILDFLAG(IS_ANDROID)` blocks in `cobalt_switch_defaults_starboard.cc` and its test. They have been unreachable since the file became Starboard-only (#6046). Bug: 532158865 (cherry picked from commit b2908eb)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BUILDFLAG(IS_ANDROID)is never true in the AOSP Cobalt core (an Evergreenbuild with
target_os = "linux"), so the--disable-quicdefault from#13468 was never applied, and QUIC was back on for AOSP.
Evergreen builds shouldn't differentiate platforms in the Cobalt core, so
set AOSP's defaults in the AOSP Starboard layer instead.
--disable-quictokDefaultSwitchesinmain_activity.cc, next tothe existing
--disable-dev-shm-usage.starboard/aosp/shared/chromium_switches.hso both use constantsinstead of string literals. Chromium's
::switchesconstants aren'tavailable in the AOSP Starboard toolchain.
BUILDFLAG(IS_ANDROID)blocks incobalt_switch_defaults_starboard.ccand its test. They have beenunreachable since the file became Starboard-only (Rename switch defaults src to state it's for linux #6046).
Bug: 532158865