From fd33ddf3ed38bbc36236c3ce507623a62f6e2f95 Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Wed, 10 Sep 2025 11:45:26 +0200 Subject: [PATCH] Disable all predictors code: disable AI Mode starter pack --- build/patches/Disable-all-predictors-code.patch | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/build/patches/Disable-all-predictors-code.patch b/build/patches/Disable-all-predictors-code.patch index 99b549e3..906bb1e2 100644 --- a/build/patches/Disable-all-predictors-code.patch +++ b/build/patches/Disable-all-predictors-code.patch @@ -39,6 +39,7 @@ License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html .../autofill_optimization_guide.cc | 5 +++-- .../field_classification_model_handler.cc | 12 ++++++++---- .../field_classification_model_handler.h | 10 ++++++---- + .../omnibox/browser/aim_eligibility_service.cc | 1 + .../omnibox/browser/autocomplete_controller.cc | 4 ++++ .../omnibox/browser/base_search_provider.cc | 4 ++-- .../prediction_model_download_manager.cc | 6 ++++-- @@ -64,7 +65,7 @@ License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html .../core/html/parser/html_document_parser.cc | 1 + .../document_speculation_rules.cc | 1 + .../platform/runtime_enabled_features.json5 | 2 +- - 59 files changed, 150 insertions(+), 88 deletions(-) + 60 files changed, 151 insertions(+), 88 deletions(-) create mode 100644 cromite_flags/chrome/browser/browser_features_cc/Disable-all-predictors-code.inc create mode 100644 cromite_flags/chrome/browser/flags/android/chrome_feature_list_cc/Disable-all-predictors-code.inc create mode 100644 cromite_flags/chrome/common/chrome_features_cc/Disable-all-predictors-code.inc @@ -898,6 +899,17 @@ diff --git a/components/autofill/core/browser/ml_model/field_classification_mode base::WeakPtrFactory weak_ptr_factory_{this}; }; +diff --git a/components/omnibox/browser/aim_eligibility_service.cc b/components/omnibox/browser/aim_eligibility_service.cc +--- a/components/omnibox/browser/aim_eligibility_service.cc ++++ b/components/omnibox/browser/aim_eligibility_service.cc +@@ -33,6 +33,7 @@ namespace { + + // If disabled, AIM is completely turned off (kill switch). + BASE_FEATURE(kAimEnabled, "AimEnabled", base::FEATURE_ENABLED_BY_DEFAULT); ++SET_CROMITE_FEATURE_DISABLED(kAimEnabled); // Disable AI Mode starter pack + + // If enabled, uses the server response for AIM eligibility for all locales. + BASE_FEATURE(kAimServerEligibilityEnabled, diff --git a/components/omnibox/browser/autocomplete_controller.cc b/components/omnibox/browser/autocomplete_controller.cc --- a/components/omnibox/browser/autocomplete_controller.cc +++ b/components/omnibox/browser/autocomplete_controller.cc