mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e68b57dfe6 | |||
| 45bb2e7044 | |||
| 1c903792d3 | |||
| f72d8b763b | |||
| d0c67ff7a3 | |||
| 22c8e702bb | |||
| fe05e0c361 | |||
| 2a3b46b1d8 | |||
| c62576f910 | |||
| 9247351f2a | |||
| 3cf2a3b65c | |||
| 82e76623df |
@@ -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 @@
|
||||
140.0.7339.80
|
||||
140.0.7339.132
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -6,3 +6,16 @@ download_filename = chromium-%(_chromium_version)s-lite.tar.xz
|
||||
hash_url = chromium|chromium-%(_chromium_version)s-lite.tar.xz.hashes|https://commondatastorage.googleapis.com/chromium-browser-official/chromium-%(_chromium_version)s-lite.tar.xz.hashes
|
||||
output_path = ./
|
||||
strip_leading_dirs = chromium-%(_chromium_version)s
|
||||
|
||||
[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
|
||||
sha256 = 00a87050fa3f941d04d67fb5763991e0b8ea399a88b505ab0e56dd263f06864c
|
||||
output_path = ./third_party/search_engines_data/resources_internal
|
||||
|
||||
[onboarding]
|
||||
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 = 4b44ba5d434f1925bc45ed2eb966d8d00398513bf56ff3598ea39335a6d9af9c
|
||||
output_path = ./components/helium_onboarding
|
||||
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
[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
|
||||
sha256 = 00a87050fa3f941d04d67fb5763991e0b8ea399a88b505ab0e56dd263f06864c
|
||||
output_path = ./third_party/search_engines_data/resources_internal
|
||||
|
||||
[onboarding]
|
||||
version = 202509081820
|
||||
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
|
||||
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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
@@ -1 +1 @@
|
||||
2
|
||||
3
|
||||
|
||||
Reference in New Issue
Block a user