From 48db4e9104f2a81e0c3aadc2566bdedabba4d449 Mon Sep 17 00:00:00 2001 From: PF4Public Date: Tue, 11 Jul 2023 16:04:50 +0300 Subject: [PATCH] Disable LiveCaption flag by default (#2403) --- .../extra/ungoogled-chromium/remove-uneeded-ui.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch b/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch index 09fed7a09..377009393 100644 --- a/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch +++ b/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch @@ -20,6 +20,7 @@ # the (?) learn more button on many settings pages # unneeded elements from the profile menu # the 'Learn more' link on crashed tabs +# disable LiveCaption flag by default, this also removes non-functional Live Caption checkbox from media controls --- a/chrome/browser/resources/extensions/item_list.html +++ b/chrome/browser/resources/extensions/item_list.html @@ -331,3 +332,14 @@ action_button_ = actions_container->AddChildView(std::make_unique( base::BindRepeating(&SadTabView::PerformAction, +--- a/media/base/media_switches.cc ++++ b/media/base/media_switches.cc +@@ -830,7 +830,7 @@ + #endif // BUILDFLAG(IS_WIN) + + // Enables the Live Caption feature on supported devices. +-BASE_FEATURE(kLiveCaption, "LiveCaption", base::FEATURE_ENABLED_BY_DEFAULT); ++BASE_FEATURE(kLiveCaption, "LiveCaption", base::FEATURE_DISABLED_BY_DEFAULT); + + // Controls whether a "Share this tab instead" button should be shown for + // getDisplayMedia captures. Note: This flag does not control if the "Share this