diff --git a/patches/helium/core/exclude-irrelevant-flags.patch b/patches/helium/core/exclude-irrelevant-flags.patch index 008216d1..42112948 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 -@@ -12935,11 +12935,387 @@ const FeatureEntry kFeatureEntries[] = { +@@ -12935,11 +12935,338 @@ const FeatureEntry kFeatureEntries[] = { // AboutFlagsHistogramTest unit test to verify this process). }; @@ -10,22 +10,11 @@ + "enable-immersive-fullscreen-toolbar", + "windows11-mica-titlebar", + "omnibox-toolbelt", -+ "webium", + "webui-omnibox-popup", + "top-chrome-touch-ui", + -+ // Google's broken canvas noising flag, -+ // replaced by Helium's fingerprinting-canvas-noise -+ "enable-canvas-noise", -+ -+ // Google's fingerprinting protection blocklist -+ // Helium blocks fingerprinting by default, and these don't even work -+ "enable-fingerprinting-protection-blocklist", -+ "enable-fingerprinting-protection-blocklist-incognito", -+ + // 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 @@ -33,10 +22,8 @@ + "extensions-collapse-main-menu", + + // NTP -+ "omnibox-zero-suggest-prefetching", + "omnibox-mia-zps", + "ntp-calendar-module", -+ "ntp-drive-module-no-sync-requirement", + "ntp-module-sign-in-requirement", + "ntp-ogb-async-bar-parts", + "ntp-outlook-calendar-module", @@ -51,18 +38,14 @@ + "ntp-feature-optimization-shortcuts-removal", + "ntp-feature-optimization-dismiss-modules-removal", + "enable-ntp-enterprise-shortcuts", ++ "ntp-drive-module", ++ "ntp-drive-module-segmentation", + + // Google Account & Sync & Synced profiles + "use-sync-sandbox", + "offer-migration-to-dice-users", + "web-signin-leads-to-implicitly-signed-in-state", -+ "enable-extensions-explicit-browser-signin", -+ "enable-history-sync-optin", -+ "sync-enable-bookmarks-in-transport-mode", -+ "reading-list-enable-sync-transport-mode-upon-sign-in", -+ "enable-history-sync-optin-expansion-pill", + "collaboration-shared-tab-group-account-data", -+ "enable-bookmarks-selected-type-on-signin-for-testing", + "enable-cross-device-pref-tracker", + "pdf-save-to-drive", + "mdm-errors-for-dasher-accounts-handling", @@ -81,28 +64,29 @@ + "enable-chrome-refresh-token-binding", + "enable-bound-session-credentials", + "enable-bound-session-credentials-software-keys-for-manual-testing", ++ "history-sync-alternative-illustration", ++ "omnibox-drive-suggestions-no-sync-requirement", ++ "enable-standard-device-bound-session-google", ++ "enable-standard-device-bound-session-google-experiment-id", + + // 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", -+ "language-detection-api", + "text-safety-classifier", + "page-content-annotations", + "page-content-annotations-remote-page-metadata", ++ "gemini-antiscam-protections-metrics-only", + + // AI Mode + "ai-mode-omnibox-entry-point", + "aim-server-eligibility", + "hide-aim-omnibox-entrypoint-on-user-input", + "omnibox-allow-ai-mode-matches", -+ "omnibox-aim-shortcut-typed-state", + "enable-lens-search-aim-m3", -+ "ntp-compose-entrypoint", + "ntp-composebox", + "composebox-uses-chrome-compose-client", + "compose-selection-nudge", @@ -110,6 +94,9 @@ + "web-app-migrate-preinstalled-chat", + "webui-omnibox-aim-popup", + "aim-entry-point-direct-navigation", ++ "aim-server-eligibility-include-client-locale", ++ "aim-use-pec-api", ++ "webui-omnibox-aim-popup-disable-animation", + + // Contextual AI stuff (AI Mode entrypoints?) + "contextual-search-box-uses-contextual-search-provider", @@ -121,19 +108,17 @@ + "contextual-tasks-context", + "contextual-tasks-suggestions-enabled", + "contextual-tasks-context-library", ++ "contextual-tasks-expand-button", + + // Shopping stuff + "product-specifications", -+ "compare-confirmation-toast", + "shopping-list", + "shopping-alternate-server", + "price-tracking-subscription-service-locale-key", + "price-tracking-subscription-service-product-version", -+ "track-by-default-mobile", + "price-insights", + "discount-on-navigation", + "discount-autofill", -+ "merchant-trust", + + // History + "history-embeddings", @@ -141,10 +126,7 @@ + + // Optimization Guide + "optimization-guide-debug-logs", -+ "optimization-guide-model-execution", + "optimization-guide-on-device-model", -+ "optimization-guide-personalized-fetching", -+ "optimization-guide-push-notifications", + "optimization-guide-enable-dogfood-logging", + "privacy-policy-insights", + @@ -156,15 +138,12 @@ + "enable-lens-overlay-entrypoint-label-alt", + "enable-lens-overlay-text-selection-context-menu-entrypoint", + "lens-overlay-omnibox-entry-point", -+ "lens-search-side-panel-default-width-change", + "lens-overlay-permission-bubble-alt", -+ "enable-lens-overlay-simplified-selection", + "enable-lens-overlay-translate-button", + "enable-lens-overlay-latency-optimizations", + "enable-lens-overlay-translate-languages", + "enable-lens-overlay-side-panel-open-in-new-tab", + "enable-lens-search-side-panel-new-feedback", -+ "enable-lens-overlay-back-to-page", + "enable-lens-overlay-straight-to-srp", + "enable-lens-overlay-force-empty-csb-query", + "contextual-search-open-lens-action-uses-thumbnail", @@ -176,32 +155,29 @@ + "lens-aim-gradient-suggest-background", + "lens-overlay-optimization-filter", + "lens-overlay-non-blocking-privacy-notice", -+ -+ // Google Assistant -+ "enable-assistant-dsp", -+ "enable-assistant-stereo-input", -+ "enable-assistant-aec", ++ "lens-aim-suggestions-type", + + // User education + "ntp-middle-slot-promo-dismissal", -+ "ntp-mobile-promo", -+ "force-ntp-mobile-promo", + "enable-educational-tip-default-browser-promo-card", + "force-startup-signin-promo", + "group-promo-prototype", + "group-promo-prototype-cpa", + "avatar-button-sync-promo", + "replace-sync-promos-with-sign-in-promos-desktop", -+ "replace-sync-promos-with-sign-in-promos", + "clank-default-browser-promo-role-manager", + "clank-default-browser-promo2", + "policy-promotion-banner-flag", + "management-promotion-banner-flag", + "enable-ntp-browser-promos", -+ "mobile-promo-on-desktop", + "in-product-help-demo-mode-choice", + "iph-extensions-menu-feature", + "iph-extensions-request-access-button-feature", ++ "google-one-offer-files-banner", ++ "signin-level-up-button", ++ "mobile-promo-on-desktop-force-promo-type", ++ "mobile-promo-on-desktop-with-qr-code", ++ "mobile-promo-on-desktop-with-reminder", + + // GLIC (AI agent stuff) + "glic", @@ -217,28 +193,22 @@ + "glic-fre-pre-warming", + "browsing-history-actor-integration-M1", + "browsing-history-actor-integration-M2", ++ "browsing-history-actor-integration-M3", ++ "glic-side-panel", + + // Live captions + "enable-headless-live-caption", + + // Google Wallet + "wallet-service-use-sandbox", -+ "enable-secure-payment-confirmation-availability-api", + "enable-secure-payment-confirmation-fallback-ux", + "enable-web-payments-experimental-features", + "enable-debug-for-store-billing", + + // Safety Hub -+ "safety-hub", -+ "safety-hub-magic-stack", -+ "safety-hub-followup", -+ "safety-hub-android-survey", -+ "safety-hub-android-survey-v2", + "safety-hub-weak-reused-passwords", + "safety-hub-local-passwords-module", + "safety-hub-unified-passwords-module", -+ "safety-hub-one-off-survey", -+ "safety-hub-services-on-start-up", + "safety-hub-disruptive-notification-revocation", + "safety-hub-unused-permission-revocation-for-all-surfaces", + @@ -247,24 +217,18 @@ + "privacy-sandbox-enrollment-overrides", + "privacy-sandbox-ads-api-ux-enhancements", + "privacy-sandbox-ad-topics-content-parity", -+ "privacy-guide-ai-settings", + + // Password Manager + "biometric-reauth-password-filling", -+ "password-manual-fallback-available", + "save-passwords-contextual-ui", + "password-form-grouped-affiliations", + "password-form-clientside-classifier", + "three-button-password-save-dialog", -+ "improved-password-change-service", -+ "fill-recovery-password", + "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", + "read-anything-read-aloud-phrase-highlighting", + "read-anything-images-via-algorithm", + "read-anything-docs-integration", @@ -294,12 +258,11 @@ + "data-sharing-debug-logs", + "chrome-web-store-navigation-throttle", + "supervised-user-block-interstitial-v3", -+ -+ // New layout kill switches -+ // (old layout is disabled in 144 and removed in 146) -+ "app-browser-use-new-layout", -+ "popup-browser-use-new-layout", -+ "tabbed-browser-use-new-layout", ++ "omnibox-zero-suggest-prefetch-debouncing", ++ "omnibox-zero-suggest-prefetching-on-srp", ++ "omnibox-zero-suggest-prefetching-on-web", ++ "cws-promotion-banner-flag", ++ "use-primary-and-tonal-buttons-for-promos", + + // Autofill + "reintroduce-hybrid-passkey-entry-point", @@ -312,43 +275,27 @@ + "enable-autofill-credit-card-upload", + "autofill-enable-offers-in-clank-keyboard-accessory", + "fedcm-autofill", -+ "autofill-enable-ranking-formula-address-profiles", -+ "autofill-enable-ranking-formula-credit-cards", + "sync-autofill-wallet-credential-data", + "autofill-enable-cvc-storage-and-filling", + "autofill-enable-prefetching-risk-data-for-retrieval", + "autofill-enable-fpan-risk-based-authentication", -+ "autofill-enable-email-or-loyalty-cards-filling", -+ "autofill-enable-loyalty-cards-filling", -+ "autofill-enable-syncing-of-loyalty-cards", + "autofill-enable-vcn-3ds-authentication", + "autofill-shared-storage-server-card-data", -+ "autofill-enable-syncing-of-pix-bank-accounts", + "autofill-enable-card-benefits-for-american-express", + "autofill-enable-card-benefits-sync", -+ "autofill-sync-ewallet-accounts", + "autofill-unmask-card-request-timeout", + "autofill-enable-cvc-storage-and-filling-enhancement", + "autofill-enable-buy-now-pay-later", + "autofill-enable-buy-now-pay-later-syncing", + "autofill-enable-cvc-storage-and-filling-standalone-form-enhancement", -+ "autofill-enable-card-benefits-iph", + "autofill-enable-card-info-runtime-retrieval", + "autofill-enable-save-and-fill", -+ "autofill-improved-labels", -+ "autofill-third-party-mode-content-provider", + "autofill-enable-card-benefits-for-bmo", -+ "autofill-enable-allowlist-for-bmo-card-category-benefits", + "autofill-enable-amount-extraction", -+ "autofill-enable-amount-extraction-allowlist", -+ "third-party-disable-chrome-autofill-settings-screen", + "iph-autofill-credit-card-benefit-feature", -+ "autofill-enable-new-fop-display-desktop", + "autofill-enable-amount-extraction-testing", + "autofill-vcn-enroll-strike-expiry-time", + "autofill-enable-flat-rate-card-benefits-from-curinos", -+ "autofill-enable-multiple-request-in-virtual-card-downstream-enrollment", -+ "autofill-require-cvc-for-possible-card-update", + "disable-autofill-strike-system", + "autofill-enable-buy-now-pay-later-for-klarna", + "autofill-enable-downstream-card-awareness-iph", @@ -357,15 +304,19 @@ + "autofill-manual-testing-data", + "autofill-enable-support-for-home-and-work", + "autofill-enable-support-for-name-and-email-profile", -+ "autofill-update-context-for-web-contents", + "autofill-prioritize-save-card-over-mandatory-reauth", + "autofill-enable-buy-now-pay-later-updated-suggestion-second-line-string", -+ "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", + "enable-your-saved-info-settings-page", ++ "autofill-ai-based-amount-extraction-ignore-seen-terms-for-testing", ++ "autofill-enable-new-fop-display-android", ++ "autofill-enable-wallet-branding", ++ "autofill-enable-pay-now-pay-later-tabs", ++ "autofill-enable-non-affiliated-loyalty-cards", ++ "autofill-disable-bnpl-country-check-for-testing", ++ "password-upload-ui-update", + + // Add new entries above this line and categorize them accordingly. +}); @@ -389,7 +340,7 @@ FlagsStateSingleton(const FlagsStateSingleton&) = delete; FlagsStateSingleton& operator=(const FlagsStateSingleton&) = delete; ~FlagsStateSingleton() override = default; -@@ -12958,7 +13334,7 @@ class FlagsStateSingleton : public flags +@@ -12958,7 +13285,7 @@ class FlagsStateSingleton : public flags void RestoreDefaultState() { flags_state_ = @@ -398,7 +349,7 @@ } private: -@@ -13295,7 +13671,7 @@ base::span GetFeatur +@@ -13295,7 +13622,7 @@ base::span GetFeatur !entries_for_testing->empty()) { return *entries_for_testing; }