Update features.cc
This commit is contained in:
parent
8ebe03cc11
commit
83c296f386
1 changed files with 13 additions and 26 deletions
39
src/third_party/blink/common/features.cc
vendored
39
src/third_party/blink/common/features.cc
vendored
|
@ -637,20 +637,6 @@ const base::FeatureParam<int> kForceDarkForegroundLightnessThresholdParam{
|
||||||
const base::FeatureParam<int> kForceDarkBackgroundLightnessThresholdParam{
|
const base::FeatureParam<int> kForceDarkBackgroundLightnessThresholdParam{
|
||||||
&kForceWebContentsDarkMode, "background_lightness_threshold", -1};
|
&kForceWebContentsDarkMode, "background_lightness_threshold", -1};
|
||||||
|
|
||||||
const base::FeatureParam<ForceDarkIncreaseTextContrast>::Option
|
|
||||||
forcedark_increase_text_contrast_options[] = {
|
|
||||||
{ForceDarkIncreaseTextContrast::kUseBlinkSettings,
|
|
||||||
"use_blink_settings_for_method"},
|
|
||||||
{ForceDarkIncreaseTextContrast::kFalse, "false"},
|
|
||||||
{ForceDarkIncreaseTextContrast::kTrue, "true"}};
|
|
||||||
|
|
||||||
// Should text contrast be increased.
|
|
||||||
const base::FeatureParam<ForceDarkIncreaseTextContrast>
|
|
||||||
kForceDarkIncreaseTextContrastParam{
|
|
||||||
&kForceWebContentsDarkMode, "increase_text_contrast",
|
|
||||||
ForceDarkIncreaseTextContrast::kUseBlinkSettings,
|
|
||||||
&forcedark_increase_text_contrast_options};
|
|
||||||
|
|
||||||
// Instructs WebRTC to honor the Min/Max Video Encode Accelerator dimensions.
|
// Instructs WebRTC to honor the Min/Max Video Encode Accelerator dimensions.
|
||||||
const base::Feature kWebRtcUseMinMaxVEADimensions {
|
const base::Feature kWebRtcUseMinMaxVEADimensions {
|
||||||
"WebRtcUseMinMaxVEADimensions",
|
"WebRtcUseMinMaxVEADimensions",
|
||||||
|
@ -756,13 +742,6 @@ const base::FeatureParam<int> kCacheCodeOnIdleDelayParam{&kCacheCodeOnIdle,
|
||||||
const base::Feature kOffsetParentNewSpecBehavior{
|
const base::Feature kOffsetParentNewSpecBehavior{
|
||||||
"OffsetParentNewSpecBehavior", base::FEATURE_DISABLED_BY_DEFAULT};
|
"OffsetParentNewSpecBehavior", base::FEATURE_DISABLED_BY_DEFAULT};
|
||||||
|
|
||||||
// Makes form elements cancel previous form submissions made by the same form
|
|
||||||
// when the default event handler schedules a form submission.
|
|
||||||
// TODO(crbug.com/1234409): Remove this flag when this feature has been in
|
|
||||||
// stable for a release with no issues
|
|
||||||
const base::Feature kCancelFormSubmissionInDefaultHandler{
|
|
||||||
"CancelFormSubmissionInDefaultHandler", base::FEATURE_ENABLED_BY_DEFAULT};
|
|
||||||
|
|
||||||
// Enables the JPEG XL Image File Format (JXL).
|
// Enables the JPEG XL Image File Format (JXL).
|
||||||
const base::Feature kJXL{"JXL", base::FEATURE_ENABLED_BY_DEFAULT};
|
const base::Feature kJXL{"JXL", base::FEATURE_ENABLED_BY_DEFAULT};
|
||||||
|
|
||||||
|
@ -1152,11 +1131,6 @@ const base::Feature kUsePageViewportInLCP{"UsePageViewportInLCP",
|
||||||
const base::Feature kAllowDropAlphaForMediaStream{
|
const base::Feature kAllowDropAlphaForMediaStream{
|
||||||
"AllowDropAlphaForMediaStream", base::FEATURE_ENABLED_BY_DEFAULT};
|
"AllowDropAlphaForMediaStream", base::FEATURE_ENABLED_BY_DEFAULT};
|
||||||
|
|
||||||
// Enables partitioning of third party storage (IndexedDB, CacheStorage, etc.)
|
|
||||||
// by the top level site to reduce fingerprinting.
|
|
||||||
const base::Feature kThirdPartyStoragePartitioning{
|
|
||||||
"ThirdPartyStoragePartitioning", base::FEATURE_DISABLED_BY_DEFAULT};
|
|
||||||
|
|
||||||
// API that allows installed PWAs to add additional shortcuts by means of
|
// API that allows installed PWAs to add additional shortcuts by means of
|
||||||
// installing sub app components.
|
// installing sub app components.
|
||||||
const base::Feature kDesktopPWAsSubApps{"DesktopPWAsSubApps",
|
const base::Feature kDesktopPWAsSubApps{"DesktopPWAsSubApps",
|
||||||
|
@ -1170,6 +1144,13 @@ const base::Feature kCORSErrorsIssueOnly{"CORSErrorsIssueOnly",
|
||||||
const base::Feature kPersistentQuotaIsTemporaryQuota{
|
const base::Feature kPersistentQuotaIsTemporaryQuota{
|
||||||
"PersistentQuotaIsTemporaryQuota", base::FEATURE_DISABLED_BY_DEFAULT};
|
"PersistentQuotaIsTemporaryQuota", base::FEATURE_DISABLED_BY_DEFAULT};
|
||||||
|
|
||||||
|
bool IsPersistentQuotaIsTemporaryQuota() {
|
||||||
|
return !base::CommandLine::ForCurrentProcess()->HasSwitch(
|
||||||
|
switches::kPersistentQuotaEnabled) &&
|
||||||
|
base::FeatureList::IsEnabled(
|
||||||
|
features::kPersistentQuotaIsTemporaryQuota);
|
||||||
|
}
|
||||||
|
|
||||||
const base::Feature kDelayLowPriorityRequestsAccordingToNetworkState{
|
const base::Feature kDelayLowPriorityRequestsAccordingToNetworkState{
|
||||||
"DelayLowPriorityRequestsAccordingToNetworkState",
|
"DelayLowPriorityRequestsAccordingToNetworkState",
|
||||||
base::FEATURE_DISABLED_BY_DEFAULT};
|
base::FEATURE_DISABLED_BY_DEFAULT};
|
||||||
|
@ -1529,6 +1510,9 @@ const base::FeatureParam<DelayAsyncScriptDelayType>
|
||||||
DelayAsyncScriptDelayType::kFinishedParsing,
|
DelayAsyncScriptDelayType::kFinishedParsing,
|
||||||
&delay_async_script_execution_delay_types};
|
&delay_async_script_execution_delay_types};
|
||||||
|
|
||||||
|
const base::FeatureParam<bool> kDelayAsyncScriptExecutionCrossSiteOnlyParam{
|
||||||
|
&kDelayAsyncScriptExecution, "cross_site_only", false};
|
||||||
|
|
||||||
const base::Feature kForceDeferScriptIntervention{
|
const base::Feature kForceDeferScriptIntervention{
|
||||||
"ForceDeferScriptIntervention", base::FEATURE_DISABLED_BY_DEFAULT};
|
"ForceDeferScriptIntervention", base::FEATURE_DISABLED_BY_DEFAULT};
|
||||||
|
|
||||||
|
@ -1607,5 +1591,8 @@ const base::Feature kClipboardUnsanitizedContent{
|
||||||
const base::Feature kWebRtcThreadsUseResourceEfficientType{
|
const base::Feature kWebRtcThreadsUseResourceEfficientType{
|
||||||
"WebRtcThreadsUseResourceEfficientType", base::FEATURE_DISABLED_BY_DEFAULT};
|
"WebRtcThreadsUseResourceEfficientType", base::FEATURE_DISABLED_BY_DEFAULT};
|
||||||
|
|
||||||
|
const base::Feature kThrottleIntersectionObserverUMA{
|
||||||
|
"ThrottleIntersectionObserverUMA", base::FEATURE_DISABLED_BY_DEFAULT};
|
||||||
|
|
||||||
} // namespace features
|
} // namespace features
|
||||||
} // namespace blink
|
} // namespace blink
|
||||||
|
|
Loading…
Reference in a new issue