Compare commits

...

8 Commits

Author SHA1 Message Date
wukko b06b34b5e9 revision: bump to 2 (#573) 2025-12-07 14:55:31 +06:00
wukko b102956f52 revision: bump to 2 2025-12-07 14:52:24 +06:00
jj 1676a4071e patches/spellcheck: update error to mention helium services (#572) 2025-12-07 09:40:46 +01:00
wukko 9b49458bc2 helium/ui: keep pinned extensions in CAT & reduce grab handle (#562) 2025-12-04 21:15:46 +06:00
wukko b3733ec6aa helium/cat: remove tab strip grab handle
cuz it takes up too much of precious space
2025-12-04 16:20:56 +06:00
wukko ac863716dd helium/cat: prevent pinned extensions from shrinking 2025-12-04 16:20:25 +06:00
wukko 05ab79d610 helium/ui/grab-handle: slightly reduce the size 2025-12-04 15:51:18 +06:00
wukko e67c0db58f patches: move everything from contrib to root dir (#557)
now all chromium patches in all helium repos follow
the same dir pattern: `<vendor>/<group>/<...>/<patch>`

and there's no longer a "contrib" dir which was admittedly
kind of confusing
2025-12-04 01:43:34 +06:00
108 changed files with 151 additions and 112 deletions
@@ -136,7 +136,7 @@ TODO: guard services_page.html with is_mac
registry->RegisterBooleanPref(
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1993,6 +1993,12 @@
@@ -1996,6 +1996,12 @@
<message name="IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE_DESCRIPTION" desc="Description of the for enabling/disabling of downloading spellcheck files">
Helium will fetch dictionary files used for spell checking when requested. When disabled, spell checking will not work.
</message>
@@ -144,7 +144,17 @@
</template>
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1987,6 +1987,12 @@
@@ -1291,6 +1291,9 @@
<message name="IDS_SETTINGS_LANGUAGES_DICTIONARY_DOWNLOAD_FAILED_HELP" desc="Error message when spell dictionary download fails more than once possibly due to a network policy or configuration.">
Please check with your network administrator to make sure that the firewall is not blocking downloads from Google servers.
</message>
+ <message name="IDS_SETTINGS_LANGUAGES_DICTIONARY_DOWNLOAD_FAILED_HELP_HELIUM" desc="Error message when spell dictionary download fails more than once possibly due to a network policy or configuration.">
+ Please check that Helium services are enabled (including spell check downloads) and make sure that the firewall is not blocking downloads from Helium servers.
+ </message>
</if>
</if>
<if expr="is_chromeos">
@@ -1987,6 +1990,12 @@
<message name="IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of downloading bangs">
Helium will fetch a list of bangs that help you browse the Internet faster, such as !w or !gh. When disabled, bangs will not work.
</message>
@@ -159,6 +169,15 @@
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -1241,7 +1241,7 @@ void AddLanguagesStrings(content::WebUID
{"languagesDictionaryDownloadError",
IDS_SETTINGS_LANGUAGES_DICTIONARY_DOWNLOAD_FAILED},
{"languagesDictionaryDownloadErrorHelp",
- IDS_SETTINGS_LANGUAGES_DICTIONARY_DOWNLOAD_FAILED_HELP},
+ IDS_SETTINGS_LANGUAGES_DICTIONARY_DOWNLOAD_FAILED_HELP_HELIUM},
#endif
#endif // !BUILDFLAG(IS_CHROMEOS)
#if BUILDFLAG(IS_CHROMEOS)
@@ -2128,6 +2128,9 @@ void AddPrivacyStrings(content::WebUIDat
{"heliumBangsToggle", IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE},
{"heliumBangsToggleDescription",
@@ -217,7 +217,7 @@
if ( bin.assetSourceRegistry instanceof Object ) {
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1999,6 +1999,12 @@
@@ -2002,6 +2002,12 @@
<message name="IDS_SETTINGS_HELIUM_SERVICES_UPDATE_DESCRIPTION" desc="Description of the toggle for automatic update downloads">
Helium will automatically download and install browser updates as they become available. We recommend keeping this setting enabled to ensure you get the latest security patches and features.
</message>
@@ -1,6 +1,6 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1947,6 +1947,9 @@
@@ -1950,6 +1950,9 @@
<message name="IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_TEXT" desc="The text of a confirmation dialog that confirms that the user want to send the 'Do Not Track' header">
Enabling "Do Not Track" means that a request will be included with your browsing traffic. Any effect depends on whether a website responds to the request, and how the request is interpreted. For example, some websites may respond to this request by showing you ads that aren't based on other websites you've visited. Many websites will still collect and use your browsing data - for example to improve security, to provide content, services, ads and recommendations on their websites, and to generate reporting statistics.
</message>
@@ -10,7 +10,7 @@
<message name="IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_LEARN_MORE_ACCESSIBILITY_LABEL" desc="The accessibility label for a link to learn more about Do Not Track">
Learn more about Do Not Track
</message>
@@ -3204,6 +3207,9 @@
@@ -3207,6 +3210,9 @@
<message name="IDS_SETTINGS_TRACKING_PROTECTION_SITES_ALLOWED_COOKIES_DESCRIPTION" desc="Description of the section on the Tracking Protection settings page that lets users manage which sites are allowed to use third-party cookies. Explains how to use a wildcard to create an exception for an entire domain.">
Affects the sites listed here. Inserting “[*.]” before a domain name creates an exception for the entire domain. For example, adding “[*.]google.com” means that third-party cookies can also be active for mail.google.com, because it’s part of google.com.
</message>
@@ -1,6 +1,6 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1960,6 +1960,12 @@
@@ -1963,6 +1963,12 @@
users to manage security settings">
Security
</message>
@@ -197,7 +197,7 @@
show_avatar_button_.Init(
prefs::kShowAvatarButton, prefs,
base::BindRepeating(&ToolbarView::OnShowAvatarButtonChanged,
@@ -573,12 +596,24 @@ void ToolbarView::Init() {
@@ -573,12 +596,27 @@ void ToolbarView::Init() {
InitLayout();
@@ -213,16 +213,19 @@
}
}
+
+ // Pinned actions (including downloads) should not shrink in CAT layout.
+ // Pinned actions (including downloads) and extensions
+ // should not shrink in CAT layout.
+ if (features::IsHeliumCatEnabled()) {
+ pinned_toolbar_actions_container_->SetProperty(
+ views::kFlexBehaviorKey, flex_preferred);
+ extensions_container_->SetProperty(
+ views::kFlexBehaviorKey, flex_preferred);
+ }
+
if (browser_view_->GetSupportsTabStrip()) {
browser()->GetTabStripModel()->AddObserver(this);
}
@@ -703,6 +738,24 @@ bool ToolbarView::IsRectInWindowCaption(
@@ -703,6 +741,24 @@ bool ToolbarView::IsRectInWindowCaption(
return gfx::ToEnclosingRect(rect_in_target_coords_f);
};
@@ -247,7 +250,7 @@
// Check each child view in container_view_ to see if the rect intersects with
// any clickable elements. If it does, check if the click is actually on that
// element. False if on a clickable element, true if not on a clickable element.
@@ -982,8 +1035,12 @@ void ToolbarView::InitLayout() {
@@ -982,8 +1038,12 @@ void ToolbarView::InitLayout() {
constexpr int kToolbarActionsFlexOrder = kOrderOffset + 2;
constexpr int kExtensionsFlexOrder = kOrderOffset + 3;
@@ -261,7 +264,7 @@
views::MaximumFlexSizeRule::kUnbounded)
.WithOrder(kLocationBarFlexOrder);
@@ -999,6 +1056,12 @@ void ToolbarView::InitLayout() {
@@ -999,6 +1059,12 @@ void ToolbarView::InitLayout() {
location_bar_->SetProperty(views::kMarginsKey,
gfx::Insets::VH(0, location_bar_margin));
@@ -338,3 +341,20 @@
}
return !location_bar_model->GetSecureDisplayText().empty();
--- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc
+++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc
@@ -85,6 +85,14 @@ class FrameGrabHandle : public views::Vi
// is full.
// TODO(tbergquist): Define this relative to the NTB insets again.
if (base::CommandLine::ForCurrentProcess()->HasSwitch("remove-grab-handle")) return gfx::Size(0, 0);
+
+ // In CAT layout the horizontal space is very tight and toolbar padding
+ // partially makes up for the drag handle area, so we don't reserve extra
+ // space for an additional grab handle here.
+ if (features::IsHeliumCatEnabled()) {
+ return gfx::Size(0, 0);
+ }
+
return gfx::Size(27, 0);
}
};
@@ -5,7 +5,7 @@
// TODO(tbergquist): Define this relative to the NTB insets again.
if (base::CommandLine::ForCurrentProcess()->HasSwitch("remove-grab-handle")) return gfx::Size(0, 0);
- return gfx::Size(42, 0);
+ return gfx::Size(29, 0);
+ return gfx::Size(27, 0);
}
};
+99 -99
View File
@@ -4,115 +4,115 @@ upstream-fixes/fix-python-codecs-deprecation.patch
upstream-fixes/fix-macos-widget-rect.patch
upstream-fixes/fix-macos-fullscreen-ui-breakage.patch
contrib/inox-patchset/fix-building-without-safebrowsing.patch
contrib/inox-patchset/disable-autofill-download-manager.patch
contrib/inox-patchset/disable-update-pings.patch
contrib/inox-patchset/disable-rlz.patch
inox-patchset/fix-building-without-safebrowsing.patch
inox-patchset/disable-autofill-download-manager.patch
inox-patchset/disable-update-pings.patch
inox-patchset/disable-rlz.patch
contrib/iridium-browser/safe-browsing-disable-reporting.patch
contrib/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch
iridium-browser/safe-browsing-disable-reporting.patch
iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch
contrib/ungoogled-chromium/disable-crash-reporter.patch
contrib/ungoogled-chromium/disable-google-host-detection.patch
contrib/ungoogled-chromium/toggle-translation-via-switch.patch
contrib/ungoogled-chromium/disable-untraceable-urls.patch
contrib/ungoogled-chromium/disable-profile-avatar-downloading.patch
contrib/ungoogled-chromium/disable-gcm.patch
contrib/ungoogled-chromium/disable-domain-reliability.patch
contrib/ungoogled-chromium/block-trk-and-subdomains.patch
contrib/ungoogled-chromium/disable-gaia.patch
contrib/ungoogled-chromium/disable-fonts-googleapis-references.patch
contrib/ungoogled-chromium/disable-webstore-urls.patch
contrib/ungoogled-chromium/fix-learn-doubleclick-hsts.patch
contrib/ungoogled-chromium/disable-webrtc-log-uploader.patch
contrib/ungoogled-chromium/fix-building-with-prunned-binaries.patch
contrib/ungoogled-chromium/disable-network-time-tracker.patch
contrib/ungoogled-chromium/disable-mei-preload.patch
contrib/ungoogled-chromium/fix-building-without-safebrowsing.patch
contrib/ungoogled-chromium/remove-unused-preferences-fields.patch
contrib/ungoogled-chromium/block-requests.patch
contrib/ungoogled-chromium/disable-privacy-sandbox.patch
contrib/ungoogled-chromium/doh-changes.patch
contrib/ungoogled-chromium/extensions-manifestv2.patch
contrib/ungoogled-chromium/remove-f1-shortcut.patch
contrib/ungoogled-chromium/move-js-optimizer-unfamiliar-sites.patch
ungoogled-chromium/disable-crash-reporter.patch
ungoogled-chromium/disable-google-host-detection.patch
ungoogled-chromium/toggle-translation-via-switch.patch
ungoogled-chromium/disable-untraceable-urls.patch
ungoogled-chromium/disable-profile-avatar-downloading.patch
ungoogled-chromium/disable-gcm.patch
ungoogled-chromium/disable-domain-reliability.patch
ungoogled-chromium/block-trk-and-subdomains.patch
ungoogled-chromium/disable-gaia.patch
ungoogled-chromium/disable-fonts-googleapis-references.patch
ungoogled-chromium/disable-webstore-urls.patch
ungoogled-chromium/fix-learn-doubleclick-hsts.patch
ungoogled-chromium/disable-webrtc-log-uploader.patch
ungoogled-chromium/fix-building-with-prunned-binaries.patch
ungoogled-chromium/disable-network-time-tracker.patch
ungoogled-chromium/disable-mei-preload.patch
ungoogled-chromium/fix-building-without-safebrowsing.patch
ungoogled-chromium/remove-unused-preferences-fields.patch
ungoogled-chromium/block-requests.patch
ungoogled-chromium/disable-privacy-sandbox.patch
ungoogled-chromium/doh-changes.patch
ungoogled-chromium/extensions-manifestv2.patch
ungoogled-chromium/remove-f1-shortcut.patch
ungoogled-chromium/move-js-optimizer-unfamiliar-sites.patch
contrib/bromite/disable-fetching-field-trials.patch
bromite/disable-fetching-field-trials.patch
contrib/ungoogled-chromium/add-ungoogled-flag-headers.patch
ungoogled-chromium/add-ungoogled-flag-headers.patch
contrib/inox-patchset/modify-default-prefs.patch
contrib/inox-patchset/disable-missing-key-warning.patch
contrib/inox-patchset/disable-battery-status-service.patch
inox-patchset/modify-default-prefs.patch
inox-patchset/disable-missing-key-warning.patch
inox-patchset/disable-battery-status-service.patch
contrib/debian/disable-google-api-warning.patch
debian/disable-google-api-warning.patch
contrib/iridium-browser/updater-disable-auto-update.patch
contrib/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch
iridium-browser/updater-disable-auto-update.patch
iridium-browser/browser-disable-profile-auto-import-on-first-run.patch
contrib/bromite/fingerprinting-flags-client-rects-and-measuretext.patch
contrib/bromite/flag-max-connections-per-host.patch
contrib/bromite/flag-fingerprinting-canvas-image-data-noise.patch
bromite/fingerprinting-flags-client-rects-and-measuretext.patch
bromite/flag-max-connections-per-host.patch
bromite/flag-fingerprinting-canvas-image-data-noise.patch
contrib/ungoogled-chromium/add-components-ungoogled.patch
contrib/ungoogled-chromium/add-ipv6-probing-option.patch
contrib/ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch
contrib/ungoogled-chromium/disable-intranet-redirect-detector.patch
contrib/ungoogled-chromium/enable-page-saving-on-more-pages.patch
contrib/ungoogled-chromium/disable-download-quarantine.patch
contrib/ungoogled-chromium/fix-building-without-mdns-and-service-discovery.patch
contrib/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch
contrib/ungoogled-chromium/add-flag-for-search-engine-collection.patch
contrib/ungoogled-chromium/add-flag-to-disable-beforeunload.patch
contrib/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch
contrib/ungoogled-chromium/add-flag-to-show-avatar-button.patch
contrib/ungoogled-chromium/add-suggestions-url-field.patch
contrib/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch
contrib/ungoogled-chromium/add-flag-to-scroll-tabs.patch
contrib/ungoogled-chromium/enable-paste-and-go-new-tab-button.patch
contrib/ungoogled-chromium/add-flag-for-bookmark-bar-ntp.patch
contrib/ungoogled-chromium/enable-menu-on-reload-button.patch
contrib/ungoogled-chromium/add-flag-for-omnibox-autocomplete-filtering.patch
contrib/ungoogled-chromium/disable-dial-repeating-discovery.patch
contrib/ungoogled-chromium/remove-uneeded-ui.patch
contrib/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch
contrib/ungoogled-chromium/add-flag-to-convert-popups-to-tabs.patch
contrib/ungoogled-chromium/add-flag-to-disable-local-history-expiration.patch
contrib/ungoogled-chromium/prepopulated-search-engines.patch
contrib/ungoogled-chromium/fix-distilled-icons.patch
contrib/ungoogled-chromium/add-flag-to-clear-data-on-exit.patch
contrib/ungoogled-chromium/add-flag-for-tabsearch-button.patch
contrib/ungoogled-chromium/add-flag-for-qr-generator.patch
contrib/ungoogled-chromium/add-flag-for-grab-handle.patch
contrib/ungoogled-chromium/add-flag-for-close-confirmation.patch
contrib/ungoogled-chromium/add-flag-for-custom-ntp.patch
contrib/ungoogled-chromium/add-flag-for-tab-hover-cards.patch
contrib/ungoogled-chromium/add-flag-to-hide-tab-close-buttons.patch
contrib/ungoogled-chromium/add-flag-to-disable-tls-grease.patch
contrib/ungoogled-chromium/add-flag-to-change-http-accept-header.patch
contrib/ungoogled-chromium/add-flag-to-disable-sharing-hub.patch
contrib/ungoogled-chromium/add-flag-for-disabling-link-drag.patch
contrib/ungoogled-chromium/add-flag-to-hide-extensions-menu.patch
contrib/ungoogled-chromium/add-flag-to-hide-fullscreen-exit-ui.patch
contrib/ungoogled-chromium/add-flag-for-incognito-themes.patch
contrib/ungoogled-chromium/add-flags-for-referrer-customization.patch
contrib/ungoogled-chromium/add-flags-for-existing-switches.patch
contrib/ungoogled-chromium/add-flag-to-reduce-system-info.patch
contrib/ungoogled-chromium/add-flag-to-remove-client-hints.patch
contrib/ungoogled-chromium/disable-downloads-page-referrer-url.patch
contrib/ungoogled-chromium/enable-extra-locales.patch
contrib/ungoogled-chromium/disable-chromelabs.patch
contrib/ungoogled-chromium/remove-pac-size-limit.patch
contrib/ungoogled-chromium/enable-certificate-transparency-and-add-flag.patch
contrib/ungoogled-chromium/add-flag-to-spoof-webgl-renderer-info.patch
contrib/ungoogled-chromium/add-flag-to-increase-incognito-storage-quota.patch
contrib/ungoogled-chromium/add-credits.patch
contrib/ungoogled-chromium/disable-ai-search-shortcuts.patch
ungoogled-chromium/add-components-ungoogled.patch
ungoogled-chromium/add-ipv6-probing-option.patch
ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch
ungoogled-chromium/disable-intranet-redirect-detector.patch
ungoogled-chromium/enable-page-saving-on-more-pages.patch
ungoogled-chromium/disable-download-quarantine.patch
ungoogled-chromium/fix-building-without-mdns-and-service-discovery.patch
ungoogled-chromium/add-flag-to-configure-extension-downloading.patch
ungoogled-chromium/add-flag-for-search-engine-collection.patch
ungoogled-chromium/add-flag-to-disable-beforeunload.patch
ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch
ungoogled-chromium/add-flag-to-show-avatar-button.patch
ungoogled-chromium/add-suggestions-url-field.patch
ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch
ungoogled-chromium/add-flag-to-scroll-tabs.patch
ungoogled-chromium/enable-paste-and-go-new-tab-button.patch
ungoogled-chromium/add-flag-for-bookmark-bar-ntp.patch
ungoogled-chromium/enable-menu-on-reload-button.patch
ungoogled-chromium/add-flag-for-omnibox-autocomplete-filtering.patch
ungoogled-chromium/disable-dial-repeating-discovery.patch
ungoogled-chromium/remove-uneeded-ui.patch
ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch
ungoogled-chromium/add-flag-to-convert-popups-to-tabs.patch
ungoogled-chromium/add-flag-to-disable-local-history-expiration.patch
ungoogled-chromium/prepopulated-search-engines.patch
ungoogled-chromium/fix-distilled-icons.patch
ungoogled-chromium/add-flag-to-clear-data-on-exit.patch
ungoogled-chromium/add-flag-for-tabsearch-button.patch
ungoogled-chromium/add-flag-for-qr-generator.patch
ungoogled-chromium/add-flag-for-grab-handle.patch
ungoogled-chromium/add-flag-for-close-confirmation.patch
ungoogled-chromium/add-flag-for-custom-ntp.patch
ungoogled-chromium/add-flag-for-tab-hover-cards.patch
ungoogled-chromium/add-flag-to-hide-tab-close-buttons.patch
ungoogled-chromium/add-flag-to-disable-tls-grease.patch
ungoogled-chromium/add-flag-to-change-http-accept-header.patch
ungoogled-chromium/add-flag-to-disable-sharing-hub.patch
ungoogled-chromium/add-flag-for-disabling-link-drag.patch
ungoogled-chromium/add-flag-to-hide-extensions-menu.patch
ungoogled-chromium/add-flag-to-hide-fullscreen-exit-ui.patch
ungoogled-chromium/add-flag-for-incognito-themes.patch
ungoogled-chromium/add-flags-for-referrer-customization.patch
ungoogled-chromium/add-flags-for-existing-switches.patch
ungoogled-chromium/add-flag-to-reduce-system-info.patch
ungoogled-chromium/add-flag-to-remove-client-hints.patch
ungoogled-chromium/disable-downloads-page-referrer-url.patch
ungoogled-chromium/enable-extra-locales.patch
ungoogled-chromium/disable-chromelabs.patch
ungoogled-chromium/remove-pac-size-limit.patch
ungoogled-chromium/enable-certificate-transparency-and-add-flag.patch
ungoogled-chromium/add-flag-to-spoof-webgl-renderer-info.patch
ungoogled-chromium/add-flag-to-increase-incognito-storage-quota.patch
ungoogled-chromium/add-credits.patch
ungoogled-chromium/disable-ai-search-shortcuts.patch
contrib/brave/chrome-importer-files.patch
contrib/brave/custom-importer.patch
contrib/brave/fix-component-content-settings-store.patch
contrib/brave/tab-cycling-mru-impl.patch
brave/chrome-importer-files.patch
brave/custom-importer.patch
brave/fix-component-content-settings-store.patch
brave/tab-cycling-mru-impl.patch
helium/core/add-zen-importer.patch
helium/core/disable-unsupported-importers.patch

Some files were not shown because too many files have changed in this diff Show More