mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5118e7ddfb | |||
| 42947bebc1 | |||
| ab2ee8d4e9 | |||
| 3799c9d957 | |||
| 5abb6826a1 | |||
| 1239a6715b | |||
| 6311688cca | |||
| 74da8e5721 | |||
| 6db3e69109 | |||
| 2873e42d24 | |||
| dd31b185bd | |||
| 617f8df878 | |||
| 9f92137d3f | |||
| dc626238a7 | |||
| b843eac0ce |
@@ -0,0 +1,52 @@
|
||||
name: Create new release on version bump
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
on:
|
||||
push: { branches: ["main"] }
|
||||
|
||||
jobs:
|
||||
check-release:
|
||||
name: Create release if it makes sense
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
with: { fetch-depth: 0 }
|
||||
|
||||
- name: Check if a new release is needed
|
||||
id: info
|
||||
env:
|
||||
COMMIT_BEFORE: ${{ github.event.before }}
|
||||
COMMIT_AFTER: ${{ github.event.after }}
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p dummy && echo 0 > dummy/revision.txt
|
||||
cp utils/helium_version.py .
|
||||
|
||||
git checkout "$COMMIT_BEFORE" \
|
||||
&& OLD_VERSION=$(python3 helium_version.py --tree . --print)
|
||||
|
||||
git checkout "$COMMIT_AFTER" \
|
||||
&& NEW_VERSION=$(python3 helium_version.py --tree . --print)
|
||||
|
||||
if [ "$OLD_VERSION" != "$NEW_VERSION" ]; then
|
||||
echo "version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
|
||||
{
|
||||
printf '### Changelog\n```\n'
|
||||
git log --oneline "$OLD_VERSION.."
|
||||
echo '```'
|
||||
} | tee body.md
|
||||
fi
|
||||
|
||||
- name: Create Release
|
||||
if: steps.info.outputs.version
|
||||
id: create_release
|
||||
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ steps.info.outputs.version }}
|
||||
name: ${{ steps.info.outputs.version }}
|
||||
body_path: body.md
|
||||
@@ -1,24 +0,0 @@
|
||||
name: Create new empty release
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Create Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@latest
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: ${{ github.ref }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
@@ -1 +1 @@
|
||||
139.0.7258.138
|
||||
139.0.7258.154
|
||||
|
||||
@@ -26,6 +26,26 @@
|
||||
std::string command_id;
|
||||
// Replace the promo URL with "command:<id>" if such a command ID is set
|
||||
// via the feature params.
|
||||
--- a/chrome/browser/profile_resetter/profile_resetter.cc
|
||||
+++ b/chrome/browser/profile_resetter/profile_resetter.cc
|
||||
@@ -99,17 +99,6 @@ ProfileResetter::ProfileResetter(Profile
|
||||
cookies_remover_(nullptr) {
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||
DCHECK(profile_);
|
||||
-
|
||||
- google_brand::GetBrand(&brandcode_);
|
||||
- if (brandcode_.empty()) {
|
||||
- return;
|
||||
- }
|
||||
- config_fetcher_ = std::make_unique<BrandcodeConfigFetcher>(
|
||||
- g_browser_process->system_network_context_manager()
|
||||
- ->GetURLLoaderFactory(),
|
||||
- base::BindOnce(&ProfileResetter::OnDefaultSettingsFetched,
|
||||
- base::Unretained(this)),
|
||||
- GURL("https://tools.google.com/service/update2"), brandcode_);
|
||||
}
|
||||
|
||||
void ProfileResetter::OnDefaultSettingsFetched() {
|
||||
--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
||||
+++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
||||
@@ -281,6 +281,7 @@ GURL SpellcheckHunspellDictionary::GetDi
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPEN_IN_READING_MODE,
|
||||
IDS_CONTENT_CONTEXT_READING_MODE);
|
||||
}
|
||||
@@ -3509,6 +3507,7 @@ void RenderViewContextMenu::ExecuteComma
|
||||
@@ -3509,10 +3507,12 @@ void RenderViewContextMenu::ExecuteComma
|
||||
}
|
||||
|
||||
void RenderViewContextMenu::AddSpellCheckServiceItem(bool is_checked) {
|
||||
@@ -26,7 +26,12 @@
|
||||
AddSpellCheckServiceItem(&menu_model_, is_checked);
|
||||
}
|
||||
|
||||
@@ -3879,6 +3878,8 @@ bool RenderViewContextMenu::IsVideoFrame
|
||||
void RenderViewContextMenu::AddAccessibilityLabelsServiceItem(bool is_checked) {
|
||||
+ return;
|
||||
if (is_checked) {
|
||||
menu_model_.AddCheckItemWithStringId(
|
||||
IDC_CONTENT_CONTEXT_ACCESSIBILITY_LABELS_TOGGLE,
|
||||
@@ -3879,6 +3879,8 @@ bool RenderViewContextMenu::IsVideoFrame
|
||||
bool RenderViewContextMenu::AppendQRCodeGeneratorItem(bool for_image,
|
||||
bool draw_icon,
|
||||
bool add_separator) {
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -258,6 +258,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
|
||||
</message>
|
||||
+ <message name="IDS_SETTINGS_AUTO_PIN_NEW_TAB_GROUPS_HELIUM" desc="Label for the checkbox which enables or disables auto pin new tab groups.">
|
||||
+ Automatically pin new tab groups to the bookmarks bar
|
||||
+ </message>
|
||||
<message name="IDS_SETTINGS_HOVER_CARD_TITLE" desc="Title for the section in appearance settings for configuring what gets displayed in tab hovercards.">
|
||||
Tab hover preview card
|
||||
</message>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -524,7 +524,7 @@ void AddAppearanceStrings(content::WebUI
|
||||
{"showBookmarksBar", IDS_SETTINGS_SHOW_BOOKMARKS_BAR},
|
||||
{"showTabGroupsInBookmarksBar",
|
||||
IDS_SETTINGS_SHOW_TAB_GROUPS_IN_BOOKMARKS_BAR},
|
||||
- {"autoPinNewTabGroups", IDS_SETTINGS_AUTO_PIN_NEW_TAB_GROUPS},
|
||||
+ {"autoPinNewTabGroups", IDS_SETTINGS_AUTO_PIN_NEW_TAB_GROUPS_HELIUM},
|
||||
{"hoverCardTitle", IDS_SETTINGS_HOVER_CARD_TITLE},
|
||||
{"showHoverCardImages", IDS_SETTINGS_SHOW_HOVER_CARD_IMAGES},
|
||||
{"showHoverCardMemoryUsage", IDS_SETTINGS_SHOW_HOVER_CARD_MEMORY_USAGE},
|
||||
--- a/chrome/browser/resources/settings/appearance_page/appearance_page.html
|
||||
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.html
|
||||
@@ -47,40 +47,12 @@
|
||||
hidden="[[!pageVisibility.setTheme]]"
|
||||
label="$i18n{themes}" sub-label="[[themeSublabel_]]"
|
||||
on-click="onThemeClick_" external></cr-link-row>
|
||||
-<if expr="not is_linux">
|
||||
<template is="dom-if" if="[[prefs.extensions.theme.id.value]]">
|
||||
<div class="separator"></div>
|
||||
<cr-button id="useDefault" on-click="onUseDefaultClick_">
|
||||
$i18n{resetToDefault}
|
||||
</cr-button>
|
||||
</template>
|
||||
-</if>
|
||||
-<if expr="is_linux">
|
||||
- <div class="settings-row continuation"
|
||||
- hidden="[[!showThemesSecondary_(
|
||||
- prefs.extensions.theme.id.value, systemTheme_)]]"
|
||||
- id="themesSecondaryActions">
|
||||
- <div class="separator"></div>
|
||||
- <template is="dom-if" if="[[showUseClassic_(
|
||||
- prefs.extensions.theme.id.value, systemTheme_)]]" restamp>
|
||||
- <cr-button id="useDefault" on-click="onUseDefaultClick_">
|
||||
- $i18n{useClassicTheme}
|
||||
- </cr-button>
|
||||
- </template>
|
||||
- <template is="dom-if" if="[[showUseGtk_(
|
||||
- prefs.extensions.theme.id.value, systemTheme_)]]" restamp>
|
||||
- <cr-button id="useGtk" on-click="onUseGtkClick_">
|
||||
- $i18n{useGtkTheme}
|
||||
- </cr-button>
|
||||
- </template>
|
||||
- <template is="dom-if" if="[[showUseQt_(
|
||||
- prefs.extensions.theme.id.value, systemTheme_)]]" restamp>
|
||||
- <cr-button id="useQt" on-click="onUseQtClick_">
|
||||
- $i18n{useQtTheme}
|
||||
- </cr-button>
|
||||
- </template>
|
||||
- </div>
|
||||
-</if>
|
||||
</div>
|
||||
<div id="toolbarRow" class="settings-row">
|
||||
<cr-link-row id="customizeToolbar"
|
||||
@@ -0,0 +1,37 @@
|
||||
--- a/chrome/app/settings_chromium_strings.grdp
|
||||
+++ b/chrome/app/settings_chromium_strings.grdp
|
||||
@@ -331,6 +331,9 @@
|
||||
<message name="IDS_SETTINGS_SUGGEST_PREF_DESC" desc="The description of the checkbox to enable/disable sending omnibox input to the user's default search engine to get additional suggestions.">
|
||||
When you type in the address bar or search box, Chromium sends what you type to your default search engine to get better suggestions. This is off in Incognito.
|
||||
</message>
|
||||
+ <message name="IDS_SETTINGS_SUGGEST_PREF_DESC_HELIUM" desc="The description of the checkbox to enable/disable sending omnibox input to the user's default search engine to get additional suggestions.">
|
||||
+ When you type in the address bar, Helium sends what you type to your default search engine to get suggestions. This is off in Incognito.
|
||||
+ </message>
|
||||
<message name="IDS_SETTINGS_SEARCH_AGGREGATOR_PREF_DESC" desc="The description of the 'Show suggestions and results from your organization' checkbox, which enables/disables sending omnibox input to the user's organization's search aggregator to get additional suggestions. Note that this setting is controlled by enterprise policy and, while a checkbox is shown, it is always enabled and cannot be disabled.">
|
||||
When you type in the address bar or search box, Chromium sends what you type to your organization's search, AI, and agent tools to get suggestions.
|
||||
</message>
|
||||
--- a/chrome/app/shared_settings_strings.grdp
|
||||
+++ b/chrome/app/shared_settings_strings.grdp
|
||||
@@ -254,6 +254,9 @@
|
||||
<message name="IDS_SETTINGS_SUGGEST_PREF" desc="The label of the checkbox to enable/disable sending omnibox input to the user's default search engine to get additional suggestions.">
|
||||
Improve search suggestions
|
||||
</message>
|
||||
+ <message name="IDS_SETTINGS_SUGGEST_PREF_HELIUM" desc="The label of the checkbox to enable/disable sending omnibox input to the user's default search engine to get additional suggestions.">
|
||||
+ Suggestions from the search engine
|
||||
+ </message>
|
||||
<!-- Sync Accounts page (used by the <settings-sync-account-control> element) -->
|
||||
<message name="IDS_SETTINGS_PEOPLE_SIGNED_IN_TO_ACCOUNT" desc="The text displayed to the user that the profile is currently signed in to a specific account.">
|
||||
Signed in to <ph name="EMAIL">$1<ex>abcd@google.com</ex></ph>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1629,8 +1629,8 @@ void AddPersonalizationOptionsStrings(co
|
||||
{"enablePersonalizationLoggingDesc",
|
||||
IDS_SETTINGS_ENABLE_LOGGING_PREF_DESC},
|
||||
{"spellingDescription", IDS_SETTINGS_SPELLING_PREF_DESC},
|
||||
- {"searchSuggestPref", IDS_SETTINGS_SUGGEST_PREF},
|
||||
- {"searchSuggestPrefDesc", IDS_SETTINGS_SUGGEST_PREF_DESC},
|
||||
+ {"searchSuggestPref", IDS_SETTINGS_SUGGEST_PREF_HELIUM},
|
||||
+ {"searchSuggestPrefDesc", IDS_SETTINGS_SUGGEST_PREF_DESC_HELIUM},
|
||||
{"searchAggregatorSuggestPref", IDS_SETTINGS_SEARCH_AGGREGATOR_PREF},
|
||||
{"searchAggregatorSuggestPrefDesc",
|
||||
IDS_SETTINGS_SEARCH_AGGREGATOR_PREF_DESC},
|
||||
@@ -72,16 +72,19 @@
|
||||
local_answer_header_and_suggestion_and_buttons_ =
|
||||
AddChildView(std::make_unique<views::View>());
|
||||
local_answer_header_and_suggestion_and_buttons_
|
||||
@@ -304,7 +301,7 @@ OmniboxResultView::OmniboxResultView(Omn
|
||||
@@ -304,8 +301,9 @@ OmniboxResultView::OmniboxResultView(Omn
|
||||
&OmniboxResultView::ButtonPressed, base::Unretained(this),
|
||||
OmniboxPopupSelection::FOCUSED_BUTTON_REMOVE_SUGGESTION)));
|
||||
remove_suggestion_button_->SetProperty(views::kMarginsKey,
|
||||
- gfx::Insets::TLBR(0, 0, 0, 16));
|
||||
- views::InstallCircleHighlightPathGenerator(remove_suggestion_button_);
|
||||
+ gfx::Insets::TLBR(0, 0, 0, 4));
|
||||
views::InstallCircleHighlightPathGenerator(remove_suggestion_button_);
|
||||
+ views::InstallRoundRectHighlightPathGenerator(remove_suggestion_button_,
|
||||
+ gfx::Insets::VH(1, 1), 5);
|
||||
auto* const remove_focus_ring =
|
||||
views::FocusRing::Get(remove_suggestion_button_);
|
||||
@@ -359,10 +356,9 @@ std::unique_ptr<views::Background> Omnib
|
||||
remove_focus_ring->SetHasFocusPredicate(base::BindRepeating(
|
||||
@@ -359,10 +357,9 @@ std::unique_ptr<views::Background> Omnib
|
||||
/*for_border_thickness=*/0);
|
||||
}
|
||||
|
||||
@@ -94,7 +97,7 @@
|
||||
}
|
||||
|
||||
void OmniboxResultView::SetMatch(const AutocompleteMatch& match) {
|
||||
@@ -499,14 +495,6 @@ void OmniboxResultView::ApplyThemeAndRef
|
||||
@@ -499,14 +496,6 @@ void OmniboxResultView::ApplyThemeAndRef
|
||||
popup_view_->controller()->client()->GetTemplateURLService())) {
|
||||
const OmniboxPopupSelection::LineState line_state =
|
||||
popup_view_->GetSelection().state;
|
||||
|
||||
@@ -59,3 +59,14 @@
|
||||
${this.colors_.map((item, index) => html`
|
||||
<cr-theme-color
|
||||
class="chrome-color"
|
||||
--- a/chrome/browser/themes/theme_service.cc
|
||||
+++ b/chrome/browser/themes/theme_service.cc
|
||||
@@ -378,6 +378,8 @@ void ThemeService::UseDefaultTheme() {
|
||||
}
|
||||
|
||||
ClearThemeData(/*clear_ntp_background=*/true);
|
||||
+ profile_->GetPrefs()->SetBoolean(prefs::kGrayscaleThemeEnabled, true);
|
||||
+
|
||||
NotifyThemeChanged();
|
||||
}
|
||||
|
||||
|
||||
@@ -126,3 +126,34 @@
|
||||
return path;
|
||||
}
|
||||
|
||||
--- a/chrome/browser/ui/views/tabs/tab_close_button.cc
|
||||
+++ b/chrome/browser/ui/views/tabs/tab_close_button.cc
|
||||
@@ -41,6 +41,8 @@
|
||||
namespace {
|
||||
constexpr int kIconSize = 16;
|
||||
constexpr gfx::Size kButtonSize = {28, 28};
|
||||
+const gfx::Insets kInkDropInsets = gfx::Insets::VH(1, 0);
|
||||
+constexpr int kCornerRadius = 4;
|
||||
} // namespace
|
||||
|
||||
TabCloseButton::TabCloseButton(PressedCallback pressed_callback,
|
||||
@@ -69,8 +71,9 @@ TabCloseButton::TabCloseButton(PressedCa
|
||||
// but needs to be explicitly mirrored for RTL.
|
||||
// TODO(http://crbug.com/1056490): Make ink drops in RTL work the same way as
|
||||
// focus rings.
|
||||
+
|
||||
auto ink_drop_highlight_path =
|
||||
- std::make_unique<views::CircleHighlightPathGenerator>(gfx::Insets());
|
||||
+ std::make_unique<views::RoundRectHighlightPathGenerator>(kInkDropInsets, kCornerRadius);
|
||||
ink_drop_highlight_path->set_use_contents_bounds(true);
|
||||
ink_drop_highlight_path->set_use_mirrored_rect(true);
|
||||
views::HighlightPathGenerator::Install(this,
|
||||
@@ -80,7 +83,7 @@ TabCloseButton::TabCloseButton(PressedCa
|
||||
// TODO(http://crbug.com/1056490): Once this bug is solved and explicit
|
||||
// mirroring for ink drops is not needed, we can combine these two.
|
||||
auto ring_highlight_path =
|
||||
- std::make_unique<views::CircleHighlightPathGenerator>(gfx::Insets());
|
||||
+ std::make_unique<views::RoundRectHighlightPathGenerator>(kInkDropInsets, kCornerRadius);
|
||||
ring_highlight_path->set_use_contents_bounds(true);
|
||||
views::FocusRing::Get(this)->SetPathGenerator(std::move(ring_highlight_path));
|
||||
|
||||
|
||||
@@ -165,6 +165,8 @@ helium/settings/reenable-update-status.patch
|
||||
helium/settings/privacy-page-tweaks.patch
|
||||
helium/settings/fix-section-separators.patch
|
||||
helium/settings/fix-text-on-cookies-page.patch
|
||||
helium/settings/update-search-suggest-text.patch
|
||||
helium/settings/fix-appearance-page.patch
|
||||
|
||||
helium/hop/setup.patch
|
||||
helium/hop/disable-password-manager.patch
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
5
|
||||
7
|
||||
|
||||
@@ -39,7 +39,7 @@ def parse_args():
|
||||
"""Argument parsing"""
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--tree", type=Path, required=True)
|
||||
parser.add_argument("--platform-tree", type=Path, required=True)
|
||||
parser.add_argument("--platform-tree", type=Path)
|
||||
parser.add_argument("--chromium-tree", type=Path)
|
||||
parser.add_argument("--print", action=argparse.BooleanOptionalAction)
|
||||
args = parser.parse_args()
|
||||
@@ -52,13 +52,15 @@ def get_version_parts(tree, platform_tree):
|
||||
"HELIUM_MAJOR": tree / "version.txt",
|
||||
"HELIUM_MINOR": tree / "chromium_version.txt",
|
||||
"HELIUM_PATCH": tree / "revision.txt",
|
||||
"HELIUM_PLATFORM": platform_tree / "revision.txt",
|
||||
}
|
||||
|
||||
if platform_tree is not None:
|
||||
version_paths["HELIUM_PLATFORM"] = platform_tree / "revision.txt"
|
||||
|
||||
version_parts = {}
|
||||
for name, path in version_paths.items():
|
||||
delta = 0 if name != "HELIUM_MINOR" else -CHROME_VERSION_BASE
|
||||
version_parts[name] = get_version_part(path) + delta
|
||||
version_parts[name] = str(get_version_part(path) + delta)
|
||||
return version_parts
|
||||
|
||||
|
||||
@@ -68,8 +70,7 @@ def main():
|
||||
|
||||
version_parts = get_version_parts(tree, platform_tree)
|
||||
if should_print:
|
||||
print(f"{version_parts['HELIUM_MAJOR']}.{version_parts['HELIUM_MINOR']}." + \
|
||||
f"{version_parts['HELIUM_PATCH']}.{version_parts['HELIUM_PLATFORM']}")
|
||||
print('.'.join(version_parts.values()))
|
||||
else:
|
||||
chrome_version_path = chromium_tree / "chrome/VERSION"
|
||||
check_existing_version(chrome_version_path)
|
||||
|
||||
Reference in New Issue
Block a user