Files
cromite/build/patches/Disable-Compose-feature.patch
T

32 lines
1.3 KiB
Diff

From: uazo <uazo@users.noreply.github.com>
Date: Mon, 26 Feb 2024 16:35:16 +0000
Subject: Disable Compose feature
License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
---
components/compose/core/browser/compose_features.cc | 2 ++
components/compose/features.gni | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/components/compose/core/browser/compose_features.cc b/components/compose/core/browser/compose_features.cc
--- a/components/compose/core/browser/compose_features.cc
+++ b/components/compose/core/browser/compose_features.cc
@@ -91,4 +91,6 @@ BASE_FEATURE(kEnableNudgeForUnspecifiedHint,
BASE_FEATURE(kEnableAdditionalTextMetrics,
"EnableAdditionalTextMetrics",
base::FEATURE_ENABLED_BY_DEFAULT);
+SET_CROMITE_FEATURE_DISABLED(kEnableCompose);
+SET_CROMITE_FEATURE_DISABLED(kComposeEligible);
} // namespace compose::features
diff --git a/components/compose/features.gni b/components/compose/features.gni
--- a/components/compose/features.gni
+++ b/components/compose/features.gni
@@ -6,5 +6,5 @@ import("//build/config/chromeos/ui_mode.gni")
declare_args() {
# Whether Compose is enabled in the build.
- enable_compose = is_mac || is_win || is_linux || is_chromeos_ash
+ enable_compose = false
}
--