From d145111dd0416d636928d4c31f7876fd5d6364ae Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 2 Dec 2025 21:17:03 +0600 Subject: [PATCH] helium/core/exclude-flags: remove irrelevant flags added in M143 --- .../core/exclude-irrelevant-flags.patch | 41 +++++++++++++++++-- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/patches/helium/core/exclude-irrelevant-flags.patch b/patches/helium/core/exclude-irrelevant-flags.patch index 1a946600..f461eedd 100644 --- a/patches/helium/core/exclude-irrelevant-flags.patch +++ b/patches/helium/core/exclude-irrelevant-flags.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -13643,11 +13643,295 @@ const FeatureEntry kFeatureEntries[] = { +@@ -13643,11 +13643,328 @@ const FeatureEntry kFeatureEntries[] = { // AboutFlagsHistogramTest unit test to verify this process). }; @@ -26,6 +26,11 @@ + // Google's experimental APIs that don't work in Helium + // due to missing model binaries + "translation-api", ++ "translation-api-streaming-by-sentence", ++ ++ // Misc features not relevant to Helium ++ "extensions-menu-access-control", ++ "extensions-collapse-main-menu", + + // NTP + "omnibox-zero-suggest-prefetching", @@ -40,6 +45,8 @@ + "ntp-tab-groups-module-zero-state", + "ntp-microsoft-authentication-module", + "ntp-realbox-next", ++ "ntp-next-features", ++ "ntp-customize-chrome-auto-open", + + // Google Account & Sync + "use-sync-sandbox", @@ -54,14 +61,18 @@ + "enable-bookmarks-selected-type-on-signin-for-testing", + "enable-cross-device-pref-tracker", + "pdf-save-to-drive", ++ "mdm-errors-for-dasher-accounts-handling", ++ "profile-creation-decline-signin-cta-experiment", ++ "show-profile-picker-to-all-users-experiment", + -+ // Gemini Nano ++ // Gemini Nano / Other Google models + "prompt-api-for-gemini-nano", + "prompt-api-for-gemini-nano-multimodal-input", + "summarization-api-for-gemini-nano", + "writer-api-for-gemini-nano", + "rewriter-api-for-gemini-nano", + "proofreader-api-for-gemini-nano", ++ "omnibox-on-device-tail-suggestions", + + // AI Mode + "ai-mode-omnibox-entry-point", @@ -75,6 +86,17 @@ + "composebox-uses-chrome-compose-client", + "compose-selection-nudge", + "contextual-tasks", ++ "web-app-migrate-preinstalled-chat", ++ "webui-omnibox-aim-popup", ++ ++ // Contextual AI stuff (AI Mode entrypoints?) ++ "contextual-search-box-uses-contextual-search-provider", ++ "contextual-suggestions-ablate-others-when-present", ++ "omnibox-contextual-search-on-focus-suggestions", ++ "omnibox-contextual-suggestions", ++ "contextual-cueing", ++ "contextual-suggestion-ui-improvements", ++ "contextual-tasks-context", + + // Shopping stuff + "product-specifications", @@ -126,6 +148,10 @@ + "lens-search-zero-state-csb", + "lens-updated-feedback-entrypoint", + "lens-video-citations", ++ "lens-aim-suggestions", ++ "lens-aim-gradient-suggest-background", ++ "lens-overlay-optimization-filter", ++ "lens-overlay-non-blocking-privacy-notice", + + // Google Assistant + "enable-assistant-dsp", @@ -150,6 +176,8 @@ + "enable-ntp-browser-promos", + "mobile-promo-on-desktop", + "in-product-help-demo-mode-choice", ++ "iph-extensions-menu-feature", ++ "iph-extensions-request-access-button-feature", + + // GLIC (AI agent stuff) + "glic", @@ -204,6 +232,7 @@ + "apply-clientside-model-predictions-for-password-types", + "enable-site-isolation-for-password-sites", + "pwm-show-suggestions-on-autofocus", ++ "web-authentication-passkey-upgrade", + + // Reading Mode + "read-anything-read-aloud", @@ -211,6 +240,8 @@ + "read-anything-images-via-algorithm", + "read-anything-docs-integration", + "read-anything-docs-load-more-button", ++ "read-anything-read-aloud-ts-text-segmentation", ++ "read-anything-with-readability-enabled", + + // Autofill + "reintroduce-hybrid-passkey-entry-point", @@ -274,6 +305,8 @@ + "autofill-and-passwords-in-same-surface", + "autofill-enable-ai-based-amount-extraction", + "autofill-prefer-buy-now-pay-later-blocklists", ++ "mark-all-credentials-as-leaked", ++ "apply-clientside-model-predictions-for-otps", + + // Add new entries above this line and categorize them accordingly. +}); @@ -297,7 +330,7 @@ FlagsStateSingleton(const FlagsStateSingleton&) = delete; FlagsStateSingleton& operator=(const FlagsStateSingleton&) = delete; ~FlagsStateSingleton() override = default; -@@ -13666,7 +13950,7 @@ class FlagsStateSingleton : public flags +@@ -13666,7 +13983,7 @@ class FlagsStateSingleton : public flags void RestoreDefaultState() { flags_state_ = @@ -306,7 +339,7 @@ } private: -@@ -13990,7 +14274,7 @@ base::span GetFeatur +@@ -13990,7 +14307,7 @@ base::span GetFeatur !entries_for_testing->empty()) { return *entries_for_testing; }