Commit 3c790401 authored by Caitlin Fischer's avatar Caitlin Fischer Committed by Commit Bot

Remove OverflowIconsForMediaControls feature.

There's a note in media_switches.cc indicating that this feature is okay
to be removed.

Bug: 1126640
Change-Id: Ie4c87b13fb573327038753ea30a59708df3bc691
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2427213Reviewed-by: default avatarTommy Steimel <steimel@chromium.org>
Reviewed-by: default avatarFrank Liberato <liberato@chromium.org>
Reviewed-by: default avatarJesse Doherty <jwd@chromium.org>
Reviewed-by: default avatarKeishi Hattori <keishi@chromium.org>
Commit-Queue: Caitlin Fischer <caitlinfischer@google.com>
Cr-Commit-Position: refs/heads/master@{#811460}
parent b4b3d367
...@@ -238,8 +238,6 @@ void SetRuntimeFeaturesFromChromiumFeatures() { ...@@ -238,8 +238,6 @@ void SetRuntimeFeaturesFromChromiumFeatures() {
features::kLazyInitializeMediaControls}, features::kLazyInitializeMediaControls},
{wf::EnableMediaEngagementBypassAutoplayPolicies, {wf::EnableMediaEngagementBypassAutoplayPolicies,
media::kMediaEngagementBypassAutoplayPolicies}, media::kMediaEngagementBypassAutoplayPolicies},
{wf::EnableOverflowIconsForMediaControls,
media::kOverflowIconsForMediaControls},
{wf::EnableAllowActivationDelegationAttr, {wf::EnableAllowActivationDelegationAttr,
features::kAllowActivationDelegationAttr}, features::kAllowActivationDelegationAttr},
{wf::EnableLazyFrameLoading, features::kLazyFrameLoading}, {wf::EnableLazyFrameLoading, features::kLazyFrameLoading},
......
...@@ -685,11 +685,6 @@ std::string GetEffectiveAutoplayPolicy(const base::CommandLine& command_line) { ...@@ -685,11 +685,6 @@ std::string GetEffectiveAutoplayPolicy(const base::CommandLine& command_line) {
#endif #endif
} }
// Adds icons to the overflow menu on the native media controls.
// TODO(steimel): Remove this.
const base::Feature kOverflowIconsForMediaControls{
"OverflowIconsForMediaControls", base::FEATURE_ENABLED_BY_DEFAULT};
// Enables Media Engagement Index recording. This data will be used to determine // Enables Media Engagement Index recording. This data will be used to determine
// when to bypass autoplay policies. This is recorded on all platforms. // when to bypass autoplay policies. This is recorded on all platforms.
const base::Feature kRecordMediaEngagementScores{ const base::Feature kRecordMediaEngagementScores{
......
...@@ -159,7 +159,6 @@ MEDIA_EXPORT extern const base::Feature kMediaLearningSmoothnessExperiment; ...@@ -159,7 +159,6 @@ MEDIA_EXPORT extern const base::Feature kMediaLearningSmoothnessExperiment;
MEDIA_EXPORT extern const base::Feature kMediaOptimizer; MEDIA_EXPORT extern const base::Feature kMediaOptimizer;
MEDIA_EXPORT extern const base::Feature kMediaPowerExperiment; MEDIA_EXPORT extern const base::Feature kMediaPowerExperiment;
MEDIA_EXPORT extern const base::Feature kMemoryPressureBasedSourceBufferGC; MEDIA_EXPORT extern const base::Feature kMemoryPressureBasedSourceBufferGC;
MEDIA_EXPORT extern const base::Feature kOverflowIconsForMediaControls;
MEDIA_EXPORT extern const base::Feature kOverlayFullscreenVideo; MEDIA_EXPORT extern const base::Feature kOverlayFullscreenVideo;
MEDIA_EXPORT extern const base::Feature kPictureInPicture; MEDIA_EXPORT extern const base::Feature kPictureInPicture;
MEDIA_EXPORT extern const base::Feature kPreloadMediaEngagementData; MEDIA_EXPORT extern const base::Feature kPreloadMediaEngagementData;
......
...@@ -5088,26 +5088,6 @@ ...@@ -5088,26 +5088,6 @@
] ]
} }
], ],
"OverflowIconsForMediaControls": [
{
"platforms": [
"android",
"android_weblayer",
"chromeos",
"linux",
"mac",
"windows"
],
"experiments": [
{
"name": "Enabled",
"enable_features": [
"OverflowIconsForMediaControls"
]
}
]
}
],
"PaintHoldingCrossOrigin": [ "PaintHoldingCrossOrigin": [
{ {
"platforms": [ "platforms": [
......
...@@ -131,7 +131,6 @@ class WebRuntimeFeatures { ...@@ -131,7 +131,6 @@ class WebRuntimeFeatures {
BLINK_PLATFORM_EXPORT static void EnableNotifications(bool); BLINK_PLATFORM_EXPORT static void EnableNotifications(bool);
BLINK_PLATFORM_EXPORT static void EnableOnDeviceChange(bool); BLINK_PLATFORM_EXPORT static void EnableOnDeviceChange(bool);
BLINK_PLATFORM_EXPORT static void EnableOrientationEvent(bool); BLINK_PLATFORM_EXPORT static void EnableOrientationEvent(bool);
BLINK_PLATFORM_EXPORT static void EnableOverflowIconsForMediaControls(bool);
BLINK_PLATFORM_EXPORT static void EnableOverlayScrollbars(bool); BLINK_PLATFORM_EXPORT static void EnableOverlayScrollbars(bool);
BLINK_PLATFORM_EXPORT static void EnableOverscrollCustomization(bool); BLINK_PLATFORM_EXPORT static void EnableOverscrollCustomization(bool);
BLINK_PLATFORM_EXPORT static void EnablePagePopup(bool); BLINK_PLATFORM_EXPORT static void EnablePagePopup(bool);
......
...@@ -206,11 +206,6 @@ void MediaControlInputElement::UpdateShownState() { ...@@ -206,11 +206,6 @@ void MediaControlInputElement::UpdateShownState() {
parent->SetInlineStyleProperty(CSSPropertyID::kDisplay, parent->SetInlineStyleProperty(CSSPropertyID::kDisplay,
CSSValueID::kNone); CSSValueID::kNone);
} }
// Don't update the shown state of the element if we want to hide
// icons on the overflow menu.
if (!RuntimeEnabledFeatures::OverflowIconsForMediaControlsEnabled())
return;
} }
MediaControlElementBase::UpdateShownState(); MediaControlElementBase::UpdateShownState();
......
...@@ -297,10 +297,6 @@ void WebRuntimeFeatures::EnableOrientationEvent(bool enable) { ...@@ -297,10 +297,6 @@ void WebRuntimeFeatures::EnableOrientationEvent(bool enable) {
RuntimeEnabledFeatures::SetOrientationEventEnabled(enable); RuntimeEnabledFeatures::SetOrientationEventEnabled(enable);
} }
void WebRuntimeFeatures::EnableOverflowIconsForMediaControls(bool enable) {
RuntimeEnabledFeatures::SetOverflowIconsForMediaControlsEnabled(enable);
}
void WebRuntimeFeatures::EnableOverscrollCustomization(bool enable) { void WebRuntimeFeatures::EnableOverscrollCustomization(bool enable) {
RuntimeEnabledFeatures::SetOverscrollCustomizationEnabled(enable); RuntimeEnabledFeatures::SetOverscrollCustomizationEnabled(enable);
} }
......
...@@ -1374,9 +1374,6 @@ ...@@ -1374,9 +1374,6 @@
{ {
name: "OverflowClip", name: "OverflowClip",
}, },
{
name: "OverflowIconsForMediaControls",
},
{ {
name: "OverscrollCustomization", name: "OverscrollCustomization",
settable_from_internals: true, settable_from_internals: true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment