This argument is getting passed along in the existing overrides. For the
existing tests the default behaviour has been preserved as true.
Chromium change:
https://chromium.googlesource.com/chromium/src/+/bed1bc72123f67fc50f94c18c71f745207d7cc19
commit bed1bc72123f67fc50f94c18c71f745207d7cc19
Author: sbingler <bingler@chromium.org>
Date: Thu Jan 23 09:00:48 2025 -0800
Propagate is_top_level_nav to ShouldUpgradeToSSL
Expose is_top_level_nav through ShouldUpgradeToSSL to its callers.
As part of this CL preconnect HSTS upgrades will be disabled whenever
kHstsTopLevelNavigationsOnly is active. This is a tentative decision
and may be adjusted in future once we have more metrics data regarding
preconnect's HSTS usage.
The metric's collection is also modified to only occur when the feature
is disabled. Since it's never been enabled yet this is effectively a
no-op on metric collection and doesn't affect existing data.
Bug: 40725781