Compare commits

...

15 Commits

Author SHA1 Message Date
wukko e625432f33 revision: bump to 4 2025-09-12 23:02:59 +06:00
wukko e19261507e downloads: split extras into extras.ini again
reverts f72d8b763b
2025-09-12 23:02:43 +06:00
wukko 92ebfbe654 devutils/set_quilt_vars: don't sort patches
our patches are often sorted in logical order, not alphabetically. even if we were to switch to alphabetically sorted patches now, the diff & blame would be completely incomprehensible, and i think we should avoid that.
2025-09-12 22:30:59 +06:00
wukko e68b57dfe6 revision: bump to 3 2025-09-12 22:05:12 +06:00
wukko 45bb2e7044 helium/core/spellcheck: update toggle description 2025-09-12 22:04:51 +06:00
wukko 1c903792d3 downloads: update onboarding 2025-09-12 21:50:52 +06:00
jj f72d8b763b downloads: drop extras.ini
i dont remember why i made it lol
2025-09-11 17:46:14 +00:00
jj d0c67ff7a3 patches/ublock: enable in incognito by default 2025-09-11 17:46:14 +00:00
wukko 22c8e702bb helium/core: fix eu search feature enforcement 2025-09-11 23:22:13 +06:00
wukko fe05e0c361 patches: refresh for 140.0.7339.132 2025-09-11 20:47:39 +06:00
wukko 2a3b46b1d8 merge: update to ungoogled-chromium 140.0.7339.132 2025-09-11 20:47:39 +06:00
wukko c62576f910 helium/settings/appearance-page: remove one more linux exclusion flag
oh my god bruh
2025-09-11 20:42:42 +06:00
jj 9247351f2a ci/bump-platform: download and unpack platform-specific downloads (#58) 2025-09-11 14:27:15 +00:00
networkException 3cf2a3b65c Update to Chromium 140.0.7339.132 2025-09-10 01:45:26 +02:00
networkException 82e76623df Update to Chromium 140.0.7339.127 2025-09-10 01:37:35 +02:00
20 changed files with 112 additions and 32 deletions
+8 -5
View File
@@ -59,12 +59,15 @@ runs:
mkdir -p build/{src,download_cache}
# fetch soures, expect that patches apply cleanly (or die)
run_upstream utils/downloads.py retrieve \
-i "$HELIUM_DIR/downloads.ini" -c build/download_cache
for file in "$HELIUM_DIR/downloads.ini" "$PLATFORM_DIR/downloads.ini"; do
if ! [ -f "$file" ]; then continue; fi
run_upstream utils/downloads.py unpack \
-i "$HELIUM_DIR/downloads.ini" -c build/download_cache build/src
run_upstream utils/downloads.py retrieve \
-i "$file" -c build/download_cache
run_upstream utils/downloads.py unpack \
-i "$file" -c build/download_cache build/src
done
run_upstream utils/patches.py apply \
--no-fuzz build/src "$HELIUM_DIR/patches"
+1 -1
View File
@@ -1 +1 @@
140.0.7339.80
140.0.7339.132
+2 -2
View File
@@ -11,8 +11,8 @@ set -gx QUILT_PATCHES "$REPO_ROOT/patches"
set -gx QUILT_PUSH_ARGS "--color=auto"
set -gx QUILT_DIFF_OPTS "--show-c-function"
set -gx QUILT_PATCH_OPTS "--unified --reject-format=unified"
set -gx QUILT_DIFF_ARGS "-p ab --no-timestamps --no-index --color=auto --sort"
set -gx QUILT_REFRESH_ARGS "-p ab --no-timestamps --no-index --sort --strip-trailing-whitespace"
set -gx QUILT_DIFF_ARGS "-p ab --no-timestamps --no-index --color=auto"
set -gx QUILT_REFRESH_ARGS "-p ab --no-timestamps --no-index --strip-trailing-whitespace"
set -gx QUILT_COLORS "diff_hdr=1;32:diff_add=1;34:diff_rem=1;31:diff_hunk=1;33:diff_ctx=35:diff_cctx=33"
set -gx QUILT_SERIES_ARGS "--color=auto"
set -gx QUILT_PATCHES_ARGS "--color=auto"
+1
View File
@@ -850,6 +850,7 @@ chrome/browser/ash/wallpaper_handlers/google_photos_wallpaper_handlers_unittest.
chrome/browser/ash/wallpaper_handlers/sea_pen_fetcher.cc
chrome/browser/ash/wallpaper_handlers/wallpaper_handlers.cc
chrome/browser/autocomplete/autocomplete_browsertest.cc
chrome/browser/autocomplete/chrome_aim_eligibility_service_browsertest.cc
chrome/browser/autocomplete/chrome_autocomplete_provider_client_browsertest.cc
chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier_unittest.cc
chrome/browser/autocomplete/search_provider_unittest.cc
+4 -2
View File
@@ -1,3 +1,5 @@
# Everything that's downloaded after cloning Chromium goes here.
# It will not work from main downloads.ini
[search_engines_data]
url = https://gist.githubusercontent.com/wukko/2a591364dda346e10219e4adabd568b1/raw/e75ae3c4a1ce940ef7627916a48bc40882d24d40/nonfree-search-engines-data.tar.gz
download_filename = nonfree-search-engines-data.tar.gz
@@ -5,8 +7,8 @@ sha256 = 00a87050fa3f941d04d67fb5763991e0b8ea399a88b505ab0e56dd263f06864c
output_path = ./third_party/search_engines_data/resources_internal
[onboarding]
version = 202509081820
version = 202509121547
url = https://github.com/imputnet/helium-onboarding/releases/download/%(version)s/helium-onboarding-%(version)s.tar.gz
download_filename = onboarding-page-%(version)s.tar.gz
sha256 = 4eb5fba49c3ef63af2d9a163cfbff1ccc081e0713034587656aed277544cf35d
sha256 = 4b44ba5d434f1925bc45ed2eb966d8d00398513bf56ff3598ea39335a6d9af9c
output_path = ./components/helium_onboarding
@@ -237,7 +237,7 @@
#if BUILDFLAG(IS_WIN)
--- a/chrome/browser/chrome_browser_interface_binders_webui.cc
+++ b/chrome/browser/chrome_browser_interface_binders_webui.cc
@@ -802,8 +802,6 @@ void PopulateChromeWebUIFrameBinders(
@@ -803,8 +803,6 @@ void PopulateChromeWebUIFrameBinders(
::mojom::app_service_internals::AppServiceInternalsPageHandler,
AppServiceInternalsUI>(map);
@@ -952,7 +952,7 @@
"//services/service_manager/public/cpp",
"//services/strings",
"//services/test/echo/public/mojom",
@@ -8441,7 +8436,6 @@ test("unit_tests") {
@@ -8444,7 +8439,6 @@ test("unit_tests") {
#
# TODO(crbug.com/417513088): Maybe merge with the non-android `deps` declaration above?
deps += [
@@ -960,7 +960,7 @@
"//chrome:packed_resources_integrity_header",
"//chrome/browser/apps:icon_standardizer",
"//chrome/browser/apps/app_service",
@@ -8474,7 +8468,6 @@ test("unit_tests") {
@@ -8477,7 +8471,6 @@ test("unit_tests") {
"//chrome/browser/profile_resetter:fake_profile_resetter",
"//chrome/browser/resource_coordinator:tab_manager_features",
"//chrome/browser/resources/new_tab_page_instant:resources_grit",
@@ -1830,7 +1830,7 @@
"//components/safe_browsing/content/browser:safe_browsing_service",
"//components/safe_browsing/content/browser/password_protection",
"//components/safe_browsing/content/browser/password_protection:test_support",
@@ -7112,7 +7111,6 @@ test("unit_tests") {
@@ -7114,7 +7113,6 @@ test("unit_tests") {
"//components/resources",
"//components/safe_browsing:buildflags",
"//components/safe_browsing/content/browser",
@@ -3934,7 +3934,7 @@
#include "components/signin/public/base/signin_switches.h"
#include "components/signin/public/identity_manager/identity_manager.h"
#include "components/signin/public/identity_manager/tribool.h"
@@ -350,8 +349,7 @@ void ManagedUserProfileNoticeUI::Initial
@@ -351,8 +350,7 @@ void ManagedUserProfileNoticeUI::Initial
// Change the text so that the "(Recommended)" label is not shown when the
// admin has set merging data as the default option.
bool profile_separation_data_migration_settings_optout =
@@ -9,7 +9,7 @@
#include "components/translate/core/browser/translate_download_manager.h"
#include "components/translate/core/browser/translate_manager.h"
#include "components/translate/core/browser/translate_prefs.h"
@@ -2179,6 +2180,7 @@ void RenderViewContextMenu::AppendPageIt
@@ -2183,6 +2184,7 @@ void RenderViewContextMenu::AppendPageIt
}
if (CanTranslate(/*menu_logging=*/true)) {
@@ -41,7 +41,7 @@
#include "base/feature_list.h"
#include "base/format_macros.h"
#include "base/functional/bind.h"
@@ -568,6 +569,15 @@ AutocompleteController::AutocompleteCont
@@ -570,6 +571,15 @@ AutocompleteController::AutocompleteCont
steady_state_omnibox_position_(
metrics::OmniboxEventProto::UNKNOWN_POSITION) {
provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes();
@@ -196,7 +196,7 @@
// already owned by the TemplateURLService.
--- a/chrome/browser/ui/search_engines/keyword_editor_controller.cc
+++ b/chrome/browser/ui/search_engines/keyword_editor_controller.cc
@@ -27,23 +27,27 @@ KeywordEditorController::KeywordEditorCo
@@ -28,23 +28,27 @@ KeywordEditorController::KeywordEditorCo
KeywordEditorController::~KeywordEditorController() = default;
@@ -232,7 +232,7 @@
DCHECK(!url.empty());
const std::optional<size_t> index =
table_model_->IndexOfTemplateURL(template_url);
@@ -55,11 +59,13 @@ void KeywordEditorController::ModifyTemp
@@ -56,11 +60,13 @@ void KeywordEditorController::ModifyTemp
// Don't do anything if the entry didn't change.
if ((template_url->short_name() == title) &&
@@ -30,7 +30,7 @@
--- a/components/omnibox/browser/featured_search_provider.cc
+++ b/components/omnibox/browser/featured_search_provider.cc
@@ -290,20 +290,10 @@ void FeaturedSearchProvider::AddFeatured
@@ -290,21 +290,10 @@ void FeaturedSearchProvider::AddFeatured
for (TemplateURL* turl : turls) {
if (turl->starter_pack_id() > 0 &&
turl->is_active() == TemplateURLData::ActiveStatus::kTrue) {
@@ -47,6 +47,7 @@
- // Skip @aimode if feature disabled.
- if (turl->starter_pack_id() == template_url_starter_pack_data::kAiMode &&
- (!omnibox_feature_configs::Toolbelt::Get().enabled ||
- !client_->GetAimEligibilityService() ||
- !client_->GetAimEligibilityService()->IsAimEligible())) {
+ // Disable all Google AI starter pack options
+ if (turl->starter_pack_id() == template_url_starter_pack_data::kGemini ||
@@ -138,7 +138,7 @@ TODO: guard services_page.html with is_mac
+++ b/chrome/app/settings_strings.grdp
@@ -1951,6 +1951,12 @@
<message name="IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE_DESCRIPTION" desc="Description of the for enabling/disabling of downloading spellcheck files">
When enabled, Helium will fetch dictionary files used for spell checking when requested.
Helium will fetch dictionary files used for spell checking when requested. When disabled, spell checking will not work.
</message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_UPDATE" desc="Toggle for automatic update downloads">
+ Allow automatic browser updates
+4 -4
View File
@@ -1,6 +1,6 @@
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
@@ -2153,7 +2153,6 @@ void RenderViewContextMenu::AppendPageIt
@@ -2157,7 +2157,6 @@ void RenderViewContextMenu::AppendPageIt
IDS_CONTENT_CONTEXT_SAVEPAGEAS);
menu_model_.AddItemWithStringId(IDC_PRINT, IDS_CONTENT_CONTEXT_PRINT);
AppendLiveCaptionItem();
@@ -8,7 +8,7 @@
if (IsRegionSearchEnabled()) {
AppendRegionSearchItem();
}
@@ -2282,8 +2281,7 @@ void RenderViewContextMenu::AppendMediaR
@@ -2286,8 +2285,7 @@ void RenderViewContextMenu::AppendMediaR
void RenderViewContextMenu::AppendReadingModeItem() {
// Show Read Anything option if it's not already open in the side panel.
@@ -18,7 +18,7 @@
menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPEN_IN_READING_MODE,
IDS_CONTENT_CONTEXT_READING_MODE);
}
@@ -3550,10 +3548,12 @@ void RenderViewContextMenu::ExecuteComma
@@ -3554,10 +3552,12 @@ void RenderViewContextMenu::ExecuteComma
}
void RenderViewContextMenu::AddSpellCheckServiceItem(bool is_checked) {
@@ -31,7 +31,7 @@
if (is_checked) {
menu_model_.AddCheckItemWithStringId(
IDC_CONTENT_CONTEXT_ACCESSIBILITY_LABELS_TOGGLE,
@@ -3930,6 +3930,8 @@ bool RenderViewContextMenu::IsVideoFrame
@@ -3934,6 +3934,8 @@ bool RenderViewContextMenu::IsVideoFrame
bool RenderViewContextMenu::AppendQRCodeGeneratorItem(bool for_image,
bool draw_icon,
bool add_separator) {
@@ -32,6 +32,16 @@
html_source->AddLocalizedString(
"saveGuestChoiceText", IDS_SEARCH_ENGINE_CHOICE_GUEST_SESSION_CHECKBOX);
--- a/components/regional_capabilities/regional_capabilities_service.cc
+++ b/components/regional_capabilities/regional_capabilities_service.cc
@@ -258,6 +258,7 @@ bool RegionalCapabilitiesService::IsInSe
}
bool RegionalCapabilitiesService::IsInEeaCountry() {
+ return true;
// Feature behaviour was directly based on the current country, as a
// decentralised way to express a concept we are now framing as "program
// settings". Here we check for the program reference directly as command line
--- a/components/regional_capabilities/regional_capabilities_utils.cc
+++ b/components/regional_capabilities/regional_capabilities_utils.cc
@@ -55,7 +55,7 @@ void ShufflePrepopulatedEngines(std::vec
@@ -152,7 +152,7 @@
+ Allow downloading dictionary files for spell checking
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE_DESCRIPTION" desc="Description of the for enabling/disabling of downloading spellcheck files">
+ When enabled, Helium will fetch dictionary files used for spell checking when requested.
+ Helium will fetch dictionary files used for spell checking when requested. When disabled, spell checking will not work.
+ </message>
<message name="IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE" desc="Text input for overriding the Helium services server">
Use your own instance of Helium services
@@ -1,14 +1,68 @@
--- a/components/policy/core/common/helium_opinionated_policy_provider.cc
+++ b/components/policy/core/common/helium_opinionated_policy_provider.cc
@@ -25,6 +25,11 @@ void HopProvider::RefreshPolicies(Policy
@@ -12,6 +12,7 @@
#include "components/policy/core/common/policy_bundle.h"
#include "components/policy/core/common/policy_types.h"
#include "components/policy/policy_constants.h"
+#include "components/helium_services/extension_ids.h"
namespace policy {
void Set(PolicyMap& map, const std::string& name, PolicyLevel level, base::Value value) {
@@ -25,6 +26,11 @@ void HopProvider::RefreshPolicies(Policy
Set(policy_map, policy::key::kPasswordManagerEnabled, POLICY_LEVEL_MANDATORY, base::Value(false));
Set(policy_map, policy::key::kPasswordManagerPasskeysEnabled, POLICY_LEVEL_MANDATORY, base::Value(false));
+ base::Value::List preinstalled_extensions;
+ preinstalled_extensions.Append("cjpalhdlnbpafiamejdnhcphjbkeiagm"); // uBlock Origin
+ preinstalled_extensions.Append(kUBlockOriginId); // uBlock Origin
+ Set(policy_map, key::kExtensionInstallForcelist, POLICY_LEVEL_RECOMMENDED,
+ base::Value(std::move(preinstalled_extensions)));
+
UpdatePolicy(std::move(bundle));
}
--- /dev/null
+++ b/components/helium_services/extension_ids.h
@@ -0,0 +1,11 @@
+// Copyright 2025 The Helium Authors
+// You can use, redistribute, and/or modify this source code under
+// the terms of the GPL-3.0 license that can be found in the LICENSE file.
+
+#ifndef COMPONENTS_HELIUM_SERVICES_EXTENSION_IDS_H_
+#define COMPONENTS_HELIUM_SERVICES_EXTENSION_IDS_H_
+
+inline constexpr char kUBlockOriginId[] =
+ "cjpalhdlnbpafiamejdnhcphjbkeiagm";
+
+#endif /* COMPONENTS_HELIUM_SERVICES_EXTENSION_IDS_H_ */
--- a/extensions/browser/extension_prefs.cc
+++ b/extensions/browser/extension_prefs.cc
@@ -30,6 +30,7 @@
#include "build/build_config.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/crx_file/id_util.h"
+#include "components/helium_services/extension_ids.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_service.h"
#include "components/supervised_user/core/common/buildflags.h"
@@ -707,11 +708,18 @@ bool ExtensionPrefs::ReadPrefAsBoolean(c
std::string_view pref_key,
bool* out_value) const {
const base::Value::Dict* ext = GetExtensionPref(extension_id);
- if (!ext) {
- return false;
+ std::optional<bool> value;
+
+ if (ext) {
+ value = ext->FindBoolByDottedPath(pref_key);
+ }
+
+ if (!value.has_value()
+ && extension_id == kUBlockOriginId
+ && pref_key == kPrefIncognitoEnabled) {
+ value = true;
}
- std::optional<bool> value = ext->FindBoolByDottedPath(pref_key);
if (!value) {
return false;
}
@@ -1,5 +1,14 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -240,7 +240,7 @@
<message name="IDS_SETTINGS_RESET_TO_DEFAULT" desc="Name of the control which resets a browser setting back to the default value">
Reset to default
</message>
- <if expr="not is_linux">
+ <if expr="True">
<message name="IDS_SETTINGS_RESET_TO_DEFAULT_THEME" desc="Accessibility label of the button which resets the browser theme back to the default value">
Reset to default theme
</message>
@@ -269,6 +269,9 @@
<message name="IDS_SETTINGS_AUTO_PIN_NEW_TAB_GROUPS" desc="Label for the checkbox which enables or disables auto pin new tab groups.">
Automatically pin new tab groups created on any device to the bookmarks bar
+3 -3
View File
@@ -40,7 +40,7 @@
#include "third_party/omnibox_proto/types.pb.h"
class ClipboardProvider;
@@ -551,6 +552,8 @@ class AutocompleteController : public Au
@@ -553,6 +554,8 @@ class AutocompleteController : public Au
// A list of all providers.
Providers providers_;
@@ -51,7 +51,7 @@
raw_ptr<HistoryQuickProvider> history_quick_provider_;
--- a/components/omnibox/browser/autocomplete_controller.cc
+++ b/components/omnibox/browser/autocomplete_controller.cc
@@ -92,6 +92,7 @@
@@ -94,6 +94,7 @@
#include "components/optimization_guide/machine_learning_tflite_buildflags.h"
#include "components/search_engines/search_engine_type.h"
#include "components/search_engines/template_url.h"
@@ -59,7 +59,7 @@
#include "components/search_engines/template_url_service.h"
#include "components/search_engines/template_url_starter_pack_data.h"
#include "components/strings/grit/components_strings.h"
@@ -1914,7 +1915,21 @@ void AutocompleteController::UpdateKeywo
@@ -1916,7 +1917,21 @@ void AutocompleteController::UpdateKeywo
// - For contextual search matches, the description indicates the
// alternative UX because they're opened in the side panel.
i->description = template_url->AdjustedShortNameForLocaleDirection();
+1 -1
View File
@@ -1 +1 @@
2
4