Compare commits

...

5 Commits

Author SHA1 Message Date
jj 25c7197893 patches: refresh for 139.0.7258.127 2025-08-13 06:58:05 +00:00
jj f4f122c9f6 merge: update to ungoogled-chromium 139.0.7258.127 2025-08-13 06:57:14 +00:00
jj e9785fd0ac Update to Chromium 139.0.7258.127 2025-08-13 06:55:19 +00:00
wukko bcd55afb27 patches/extra: disable ai starter pack shortcuts 2025-08-08 20:24:30 +06:00
wukko df88312959 helium/core: disable google ai starterpack options
disables gemini, aimode, and page shortcuts; even if google didn't gate the features correctly, which happened with aimode
2025-08-08 20:16:15 +06:00
4 changed files with 45 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
139.0.7258.66
139.0.7258.127
@@ -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) {
+1
View File
@@ -106,6 +106,7 @@ 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
extra/brave/chrome-importer-files.patch
extra/brave/custom-importer.patch
+1 -1
View File
@@ -1 +1 @@
1
2