From bcd55afb27f27318848f0b76accda84ce9c40b89 Mon Sep 17 00:00:00 2001 From: wukko Date: Fri, 8 Aug 2025 20:24:30 +0600 Subject: [PATCH 1/2] patches/extra: disable ai starter pack shortcuts --- .../disable-ai-search-shortcuts.patch | 42 +++++++++++++++++++ patches/series | 1 + 2 files changed, 43 insertions(+) create mode 100644 patches/extra/ungoogled-chromium/disable-ai-search-shortcuts.patch diff --git a/patches/extra/ungoogled-chromium/disable-ai-search-shortcuts.patch b/patches/extra/ungoogled-chromium/disable-ai-search-shortcuts.patch new file mode 100644 index 00000000..58b26c22 --- /dev/null +++ b/patches/extra/ungoogled-chromium/disable-ai-search-shortcuts.patch @@ -0,0 +1,42 @@ +--- a/chrome/browser/ui/search_engines/template_url_table_model.cc ++++ b/chrome/browser/ui/search_engines/template_url_table_model.cc +@@ -119,12 +119,11 @@ void TemplateURLTableModel::Reload() { + for (TemplateURL* template_url : urls) { + // Don't include the expanded set of starter pack keywords if the expansion + // feature flag is not enabled. +- if ((template_url->starter_pack_id() == +- template_url_starter_pack_data::kGemini && +- !OmniboxFieldTrial::IsStarterPackExpansionEnabled()) || +- (template_url->starter_pack_id() == +- template_url_starter_pack_data::kPage && +- !omnibox_feature_configs::ContextualSearch::Get().starter_pack_page)) { ++ ++ // Disable all Google AI starter pack options ++ if (template_url->starter_pack_id() == template_url_starter_pack_data::kGemini || ++ template_url->starter_pack_id() == template_url_starter_pack_data::kAiMode || ++ template_url->starter_pack_id() == template_url_starter_pack_data::kPage) { + continue; + } + +--- a/components/omnibox/browser/featured_search_provider.cc ++++ b/components/omnibox/browser/featured_search_provider.cc +@@ -291,13 +291,14 @@ void FeaturedSearchProvider::AddFeatured + turl->is_active() == TemplateURLData::ActiveStatus::kTrue) { + // Don't add the expanded set of starter pack engines unless the feature + // is enabled. +- if ((turl->starter_pack_id() == template_url_starter_pack_data::kGemini && +- !OmniboxFieldTrial::IsStarterPackExpansionEnabled()) || +- (turl->starter_pack_id() == template_url_starter_pack_data::kPage && +- !omnibox_feature_configs::ContextualSearch::Get() +- .starter_pack_page)) { ++ ++ // Disable all Google AI starter pack options ++ if (turl->starter_pack_id() == template_url_starter_pack_data::kGemini || ++ turl->starter_pack_id() == template_url_starter_pack_data::kAiMode || ++ turl->starter_pack_id() == template_url_starter_pack_data::kPage) { + continue; + } ++ + // The history starter pack engine is disabled in incognito mode. + if (client_->IsOffTheRecord() && + turl->starter_pack_id() == template_url_starter_pack_data::kHistory) { diff --git a/patches/series b/patches/series index a92e0be9..a5bbd9b0 100644 --- a/patches/series +++ b/patches/series @@ -112,3 +112,4 @@ extra/ungoogled-chromium/enable-certificate-transparency-and-add-flag.patch extra/ungoogled-chromium/add-flag-to-spoof-webgl-renderer-info.patch extra/ungoogled-chromium/add-flag-to-increase-incognito-storage-quota.patch extra/ungoogled-chromium/add-credits.patch +extra/ungoogled-chromium/disable-ai-search-shortcuts.patch From e9785fd0ac6eb540c34488304d9d5a09bcafbf2e Mon Sep 17 00:00:00 2001 From: jj Date: Tue, 12 Aug 2025 23:14:03 +0000 Subject: [PATCH 2/2] Update to Chromium 139.0.7258.127 --- chromium_version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium_version.txt b/chromium_version.txt index 56312530..fee79473 100644 --- a/chromium_version.txt +++ b/chromium_version.txt @@ -1 +1 @@ -139.0.7258.66 +139.0.7258.127