mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
34 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5118e7ddfb | |||
| 42947bebc1 | |||
| ab2ee8d4e9 | |||
| 3799c9d957 | |||
| 5abb6826a1 | |||
| 1239a6715b | |||
| 6311688cca | |||
| 74da8e5721 | |||
| 6db3e69109 | |||
| 2873e42d24 | |||
| dd31b185bd | |||
| 617f8df878 | |||
| 9f92137d3f | |||
| dc626238a7 | |||
| fc9e935120 | |||
| d0198c25f9 | |||
| 92f6d7d2c8 | |||
| 988e4b4fb4 | |||
| 2ea2284c35 | |||
| e06a3a62f5 | |||
| b843eac0ce | |||
| 46b3fa7099 | |||
| b249347978 | |||
| 803eb8c3f5 | |||
| 9ec3ed6ecd | |||
| f240e14a58 | |||
| b497f44124 | |||
| 475fd063f3 | |||
| 31bdefc2de | |||
| 25c7197893 | |||
| f4f122c9f6 | |||
| e9785fd0ac | |||
| bcd55afb27 | |||
| df88312959 |
@@ -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.66
|
||||
139.0.7258.154
|
||||
|
||||
@@ -5157,6 +5157,7 @@ testing/android/instrumentation/java/AndroidManifest_permissions.xml
|
||||
testing/android/junit/shadows-allowlist.txt
|
||||
testing/android/native_test/java/AndroidManifest.xml.jinja2
|
||||
testing/buildbot/PRESUBMIT.py
|
||||
testing/buildbot/buildbot_json_magic_substitutions.py
|
||||
testing/buildbot/check.py
|
||||
testing/buildbot/chromium.perf.json
|
||||
testing/buildbot/chromium.perf.pinpoint.json
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
@@ -267,7 +267,7 @@
|
||||
// This closure is run when the default search provider is set to Google.
|
||||
--- /dev/null
|
||||
+++ b/components/search_engines/template_url_bang_manager.cc
|
||||
@@ -0,0 +1,197 @@
|
||||
@@ -0,0 +1,215 @@
|
||||
+// 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.
|
||||
@@ -427,9 +427,25 @@
|
||||
+
|
||||
+ auto dict = std::move(bang).TakeDict();
|
||||
+ auto bname = dict.FindString("s");
|
||||
+ auto bbang = dict.FindString("t");
|
||||
+
|
||||
+ std::vector<const std::string*> triggers;
|
||||
+ if (auto bbang = dict.FindString("t")) {
|
||||
+ triggers.push_back(bbang);
|
||||
+ }
|
||||
+
|
||||
+ if (auto bbangs = dict.FindList("ts")) {
|
||||
+ triggers.reserve(triggers.size() + bbangs->size());
|
||||
+
|
||||
+ for (const auto& trigger : *bbangs) {
|
||||
+ const std::string* value = trigger.GetIfString();
|
||||
+ if (!value) continue;
|
||||
+
|
||||
+ triggers.push_back(value);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ auto burl_template = dict.FindString("u");
|
||||
+ if (!bname || !bbang || !burl_template) {
|
||||
+ if (!bname || !burl_template || triggers.empty()) {
|
||||
+ continue;
|
||||
+ }
|
||||
+
|
||||
@@ -444,10 +460,12 @@
|
||||
+ category_map_[index] = GetCategoryFromJSONObject(*bcategory);
|
||||
+ }
|
||||
+
|
||||
+ // We need to pass the URL here as-is, because otherwise URLs
|
||||
+ // which have the template in the path will have it %-encoded,
|
||||
+ // which will break everything.
|
||||
+ bangs_.emplace_back(index++, *bname, *bbang, *burl_template);
|
||||
+ for (auto trigger : triggers) {
|
||||
+ // We need to pass the URL here as-is, because otherwise URLs
|
||||
+ // which have the template in the path will have it %-encoded,
|
||||
+ // which will break everything.
|
||||
+ bangs_.emplace_back(index++, *bname, *trigger, *burl_template);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ LOG(INFO) << bangs_.size() << " bangs loaded";
|
||||
@@ -778,19 +796,50 @@
|
||||
#endif // COMPONENTS_HELIUM_SERVICES_PREF_NAMES_H_
|
||||
--- a/components/omnibox/browser/omnibox_edit_model.cc
|
||||
+++ b/components/omnibox/browser/omnibox_edit_model.cc
|
||||
@@ -1506,7 +1506,10 @@ void OmniboxEditModel::InternalSetUserTe
|
||||
@@ -780,6 +780,17 @@ bool OmniboxEditModel::AcceptKeyword(
|
||||
|
||||
controller_->StopAutocomplete(/*clear_result=*/false);
|
||||
|
||||
+ const TemplateURL* turl =
|
||||
+ controller_->client()->GetTemplateURLService()->GetTemplateURLForKeyword(
|
||||
+ keyword_);
|
||||
+
|
||||
+ if (turl && turl->bang_id() > 0 && !user_text_.starts_with(u'!')) {
|
||||
+ AutocompleteMatch match = CurrentMatch(nullptr);
|
||||
+ if (!match.fill_into_edit.empty()) {
|
||||
+ user_text_ = match.fill_into_edit;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
is_keyword_hint_ = false;
|
||||
keyword_mode_entry_method_ = entry_method;
|
||||
if (original_user_text_with_keyword_.empty()) {
|
||||
@@ -822,9 +833,6 @@ bool OmniboxEditModel::AcceptKeyword(
|
||||
}
|
||||
|
||||
base::RecordAction(base::UserMetricsAction("AcceptedKeywordHint"));
|
||||
- const TemplateURL* turl =
|
||||
- controller_->client()->GetTemplateURLService()->GetTemplateURLForKeyword(
|
||||
- keyword_);
|
||||
EmitEnteredKeywordModeHistogram(entry_method, turl);
|
||||
return true;
|
||||
}
|
||||
@@ -1506,7 +1514,13 @@ void OmniboxEditModel::InternalSetUserTe
|
||||
|
||||
std::u16string OmniboxEditModel::MaybeStripKeyword(
|
||||
const std::u16string& text) const {
|
||||
- return is_keyword_selected()
|
||||
+ std::u16string trimmed_text;
|
||||
+ base::TrimWhitespace(text, base::TRIM_LEADING, &trimmed_text);
|
||||
+
|
||||
+ std::u16string actual_keyword = base::ToLowerASCII(
|
||||
+ AutocompleteInput::SplitKeywordFromInput(text, false, nullptr));
|
||||
+ AutocompleteInput::SplitKeywordFromInput(trimmed_text, false, nullptr));
|
||||
+
|
||||
+ return is_keyword_selected() && actual_keyword == keyword_
|
||||
? AutocompleteInput::SplitReplacementStringFromInput(text, false)
|
||||
: text;
|
||||
}
|
||||
@@ -2746,9 +2749,8 @@ bool OmniboxEditModel::MaybeAcceptKeywor
|
||||
@@ -2746,9 +2760,8 @@ bool OmniboxEditModel::MaybeAcceptKeywor
|
||||
return false;
|
||||
|
||||
size_t keyword_length = new_text.length() - 1;
|
||||
|
||||
@@ -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,11 @@
|
||||
--- a/chrome/browser/upgrade_detector/upgrade_detector_impl.cc
|
||||
+++ b/chrome/browser/upgrade_detector/upgrade_detector_impl.cc
|
||||
@@ -214,6 +214,8 @@ void UpgradeDetectorImpl::DoCalculateThr
|
||||
|
||||
void UpgradeDetectorImpl::StartOutdatedBuildDetector() {
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||
+ return;
|
||||
+
|
||||
static BASE_FEATURE(kOutdatedBuildDetector, "OutdatedBuildDetector",
|
||||
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
@@ -114,17 +114,18 @@
|
||||
// DIR_ROAMING_USER_DATA has been overridden by a command-line option.
|
||||
--- a/chrome/common/chrome_paths_linux.cc
|
||||
+++ b/chrome/common/chrome_paths_linux.cc
|
||||
@@ -101,6 +101,23 @@ bool GetDefaultUserDataDirectory(base::F
|
||||
@@ -101,6 +101,24 @@ bool GetDefaultUserDataDirectory(base::F
|
||||
return true;
|
||||
}
|
||||
|
||||
+bool GetChromeUserDataDirectory(base::FilePath* result) {
|
||||
+ std::unique_ptr<base::Environment> env(base::Environment::Create());
|
||||
+ base::FilePath config_dir;
|
||||
+ std::string chrome_config_home_str;
|
||||
+ if (env->GetVar("CHROME_CONFIG_HOME", &chrome_config_home_str) &&
|
||||
+ base::IsStringUTF8(chrome_config_home_str)) {
|
||||
+ config_dir = base::FilePath::FromUTF8Unsafe(chrome_config_home_str);
|
||||
+ std::optional<std::string> chrome_config_home_str =
|
||||
+ env->GetVar("CHROME_CONFIG_HOME");
|
||||
+
|
||||
+ if (chrome_config_home_str && base::IsStringUTF8(*chrome_config_home_str)) {
|
||||
+ config_dir = base::FilePath::FromUTF8Unsafe(*chrome_config_home_str);
|
||||
+ } else {
|
||||
+ config_dir =
|
||||
+ GetXDGDirectory(env.get(), kXdgConfigHomeEnvVar, kDotConfigDir);
|
||||
|
||||
@@ -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,59 @@
|
||||
--- a/chrome/app/settings_strings.grdp
|
||||
+++ b/chrome/app/settings_strings.grdp
|
||||
@@ -1856,6 +1856,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>
|
||||
+ <message name="IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_TEXT_HELIUM" 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 Helium will include a request not to be tracked with your browsing traffic. Whether this request is honored depends on whether a website responds to it and on how it is interpreted. For example, some websites may respond by showing you ads that aren't personalized using your previous browsing data. Many websites may still track you regardless of the request.
|
||||
+ </message>
|
||||
<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>
|
||||
@@ -3105,6 +3108,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>
|
||||
+ <message name="IDS_SETTINGS_ALLOWED_THIRD_PARTY_COOKIES_DESCRIPTION_HELIUM" desc="Description of the section on the Cookies 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 “[*.]example.com” means that third-party cookies can also be active for second.example.com, because it’s part of example.com.
|
||||
+ </message>
|
||||
<message name="IDS_SETTINGS_SITE_SETTINGS_APP_PROTOCOL_HANDLERS" desc="Label for the app protocol handlers (e.g. mailto) in site settings.">
|
||||
Apps
|
||||
</message>
|
||||
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
|
||||
@@ -1883,7 +1883,7 @@ void AddPrivacyStrings(content::WebUIDat
|
||||
{"privacyPageMore", IDS_SETTINGS_PRIVACY_MORE},
|
||||
{"doNotTrack", IDS_SETTINGS_ENABLE_DO_NOT_TRACK},
|
||||
{"doNotTrackDialogTitle", IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_TITLE},
|
||||
- {"doNotTrackDialogMessage", IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_TEXT},
|
||||
+ {"doNotTrackDialogMessage", IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_TEXT_HELIUM},
|
||||
{"doNotTrackDialogLearnMoreA11yLabel",
|
||||
IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_LEARN_MORE_ACCESSIBILITY_LABEL},
|
||||
// TODO(crbug.com/40122957): This string is no longer used. Remove.
|
||||
@@ -2615,7 +2615,7 @@ void AddSiteSettingsStrings(content::Web
|
||||
{"trackingProtectionSitesAllowedCookiesTitle",
|
||||
IDS_SETTINGS_TRACKING_PROTECTION_SITES_ALLOWED_COOKIES_TITLE},
|
||||
{"trackingProtectionSitesAllowedCookiesDescription",
|
||||
- IDS_SETTINGS_TRACKING_PROTECTION_SITES_ALLOWED_COOKIES_DESCRIPTION},
|
||||
+ IDS_SETTINGS_ALLOWED_THIRD_PARTY_COOKIES_DESCRIPTION_HELIUM},
|
||||
{"siteSettingsCategoryAutomaticFullscreen",
|
||||
IDS_SITE_SETTINGS_TYPE_AUTOMATIC_FULLSCREEN},
|
||||
{"siteSettingsCategoryFederatedIdentityApi",
|
||||
--- a/chrome/browser/resources/settings/privacy_page/do_not_track_toggle.html
|
||||
+++ b/chrome/browser/resources/settings/privacy_page/do_not_track_toggle.html
|
||||
@@ -18,13 +18,7 @@
|
||||
close-text="$i18n{close}" on-cancel="onDialogCancel_"
|
||||
on-close="onDialogClosed_">
|
||||
<div slot="title">$i18n{doNotTrackDialogTitle}</div>
|
||||
- <div slot="body">$i18n{doNotTrackDialogMessage}
|
||||
- <a href="$i18nRaw{doNotTrackLearnMoreURL}" target="_blank"
|
||||
- aria-description="$i18n{opensInNewTab}"
|
||||
- aria-label="$i18n{doNotTrackDialogLearnMoreA11yLabel}">
|
||||
- $i18n{learnMore}
|
||||
- </a>
|
||||
- </div>
|
||||
+ <div slot="body">$i18n{doNotTrackDialogMessage}</div>
|
||||
<div slot="button-container">
|
||||
<cr-button class="cancel-button"
|
||||
on-click="onDialogCancel_">
|
||||
@@ -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},
|
||||
@@ -0,0 +1,98 @@
|
||||
--- a/chrome/browser/ui/views/toolbar/browser_app_menu_button.cc
|
||||
+++ b/chrome/browser/ui/views/toolbar/browser_app_menu_button.cc
|
||||
@@ -160,13 +160,8 @@ void BrowserAppMenuButton::UpdateIcon()
|
||||
}
|
||||
|
||||
void BrowserAppMenuButton::UpdateInkdrop() {
|
||||
- if (IsLabelPresentAndVisible()) {
|
||||
- ConfigureToolbarInkdropForRefresh2023(this, kColorAppMenuChipInkDropHover,
|
||||
- kColorAppMenuChipInkDropRipple);
|
||||
- } else {
|
||||
- ConfigureToolbarInkdropForRefresh2023(this, kColorToolbarInkDropHover,
|
||||
- kColorToolbarInkDropRipple);
|
||||
- }
|
||||
+ ConfigureToolbarInkdropForRefresh2023(this, kColorToolbarInkDropHover,
|
||||
+ kColorToolbarInkDropRipple);
|
||||
}
|
||||
|
||||
bool BrowserAppMenuButton::IsLabelPresentAndVisible() const {
|
||||
@@ -177,14 +172,6 @@ bool BrowserAppMenuButton::IsLabelPresen
|
||||
}
|
||||
|
||||
SkColor BrowserAppMenuButton::GetForegroundColor(ButtonState state) const {
|
||||
- if (IsLabelPresentAndVisible()) {
|
||||
- const auto* const color_provider = GetColorProvider();
|
||||
- if (type_and_severity_.use_primary_colors) {
|
||||
- return color_provider->GetColor(kColorAppMenuExpandedForegroundPrimary);
|
||||
- }
|
||||
- return color_provider->GetColor(kColorAppMenuExpandedForegroundDefault);
|
||||
- }
|
||||
-
|
||||
return ToolbarButton::GetForegroundColor(state);
|
||||
}
|
||||
|
||||
@@ -196,23 +183,7 @@ void BrowserAppMenuButton::UpdateTextAnd
|
||||
} else if (type_and_severity_.type ==
|
||||
AppMenuIconController::IconType::UPGRADE_NOTIFICATION) {
|
||||
tooltip_message_id = IDS_APPMENU_TOOLTIP_UPDATE_AVAILABLE;
|
||||
-#if BUILDFLAG(GOOGLE_CHROME_BRANDING) && \
|
||||
- (BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX))
|
||||
- int message_id = IDS_APP_MENU_BUTTON_UPDATE;
|
||||
- // Select an update text option randomly. Show this text in all browser
|
||||
- // windows.
|
||||
- static const int update_text_option = base::RandInt(1, 3);
|
||||
- if (update_text_option == 1) {
|
||||
- message_id = IDS_APP_MENU_BUTTON_UPDATE_ALT1;
|
||||
- } else if (update_text_option == 2) {
|
||||
- message_id = IDS_APP_MENU_BUTTON_UPDATE_ALT2;
|
||||
- } else {
|
||||
- message_id = IDS_APP_MENU_BUTTON_UPDATE_ALT3;
|
||||
- }
|
||||
- text = l10n_util::GetStringUTF16(message_id);
|
||||
-#else
|
||||
text = l10n_util::GetStringUTF16(IDS_APP_MENU_BUTTON_UPDATE);
|
||||
-#endif
|
||||
} else if (type_and_severity_.type ==
|
||||
AppMenuIconController::IconType::DEFAULT_BROWSER_PROMPT) {
|
||||
#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_CHROMEOS)
|
||||
@@ -231,37 +202,19 @@ void BrowserAppMenuButton::UpdateTextAnd
|
||||
}
|
||||
|
||||
bool BrowserAppMenuButton::ShouldPaintBorder() const {
|
||||
- return false;
|
||||
+ return true;
|
||||
}
|
||||
|
||||
void BrowserAppMenuButton::UpdateLayoutInsets() {
|
||||
- if (IsLabelPresentAndVisible()) {
|
||||
- SetLayoutInsets(::GetLayoutInsets(BROWSER_APP_MENU_CHIP_PADDING));
|
||||
- } else {
|
||||
- SetLayoutInsets(::GetLayoutInsets(TOOLBAR_BUTTON));
|
||||
- }
|
||||
+ SetLayoutInsets(::GetLayoutInsets(TOOLBAR_BUTTON));
|
||||
}
|
||||
|
||||
std::optional<SkColor> BrowserAppMenuButton::GetHighlightTextColor() const {
|
||||
- if (IsLabelPresentAndVisible()) {
|
||||
- const auto* const color_provider = GetColorProvider();
|
||||
- if (type_and_severity_.use_primary_colors) {
|
||||
- return color_provider->GetColor(kColorAppMenuExpandedForegroundPrimary);
|
||||
- }
|
||||
- return color_provider->GetColor(kColorAppMenuExpandedForegroundDefault);
|
||||
- }
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
std::optional<SkColor> BrowserAppMenuButton::GetHighlightColor() const {
|
||||
- const auto* const color_provider = GetColorProvider();
|
||||
- if (type_and_severity_.severity == AppMenuIconController::Severity::NONE) {
|
||||
- return std::nullopt;
|
||||
- } else {
|
||||
- return color_provider->GetColor(type_and_severity_.use_primary_colors
|
||||
- ? kColorAppMenuHighlightPrimary
|
||||
- : kColorAppMenuHighlightDefault);
|
||||
- }
|
||||
+ return std::nullopt;
|
||||
}
|
||||
|
||||
void BrowserAppMenuButton::OnTouchUiChanged() {
|
||||
@@ -34,7 +34,32 @@
|
||||
AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
|
||||
AddItemWithStringIdAndVectorIcon(this, IDC_PERFORMANCE, IDS_SHOW_PERFORMANCE,
|
||||
@@ -1778,32 +1760,6 @@ void AppMenuModel::Build() {
|
||||
@@ -1736,22 +1718,8 @@ void AppMenuModel::Build() {
|
||||
// Build (and, by extension, Init) should only be called once.
|
||||
DCHECK_EQ(0u, GetItemCount());
|
||||
|
||||
- if (app_menu_icon_controller_ &&
|
||||
- app_menu_icon_controller_->GetTypeAndSeverity().type ==
|
||||
- AppMenuIconController::IconType::UPGRADE_NOTIFICATION) {
|
||||
- AddSeparator(ui::SPACING_SEPARATOR);
|
||||
- const auto update_icon = ui::ImageModel::FromVectorIcon(
|
||||
- kBrowserToolsUpdateChromeRefreshIcon,
|
||||
- ui::kColorMenuIconOnEmphasizedBackground, kDefaultIconSize);
|
||||
- if (browser_defaults::kShowUpgradeMenuItem) {
|
||||
- AddItemWithIcon(IDC_UPGRADE_DIALOG, GetUpgradeDialogTitleText(),
|
||||
- update_icon);
|
||||
- AddSeparator(ui::SPACING_SEPARATOR);
|
||||
- }
|
||||
- }
|
||||
-
|
||||
- if (AddSafetyHubMenuItem() || AddGlobalErrorMenuItems() ||
|
||||
- AddDefaultBrowserMenuItems()) {
|
||||
+ if (AddGlobalErrorMenuItems() || AddDefaultBrowserMenuItems() ||
|
||||
+ AddUpgradeMenuItem()) {
|
||||
AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
}
|
||||
|
||||
@@ -1778,32 +1746,6 @@ void AppMenuModel::Build() {
|
||||
|
||||
AddSeparator(ui::NORMAL_SEPARATOR);
|
||||
|
||||
@@ -67,7 +92,7 @@
|
||||
if (!browser_->profile()->IsOffTheRecord()) {
|
||||
auto recent_tabs_sub_menu =
|
||||
std::make_unique<RecentTabsSubMenuModel>(provider_, browser_);
|
||||
@@ -1825,7 +1781,7 @@ void AppMenuModel::Build() {
|
||||
@@ -1825,7 +1767,7 @@ void AppMenuModel::Build() {
|
||||
std::make_unique<BookmarkSubMenuModel>(this, browser_);
|
||||
|
||||
AddSubMenuWithStringIdAndVectorIcon(
|
||||
@@ -76,7 +101,7 @@
|
||||
bookmark_sub_menu_model_.get(), kBookmarksListsMenuIcon);
|
||||
SetElementIdentifierAt(GetIndexOfCommandId(IDC_BOOKMARKS_MENU).value(),
|
||||
kBookmarksMenuItem);
|
||||
@@ -1842,23 +1798,10 @@ void AppMenuModel::Build() {
|
||||
@@ -1842,23 +1784,10 @@ void AppMenuModel::Build() {
|
||||
kTabGroupsMenuItem);
|
||||
}
|
||||
|
||||
@@ -104,7 +129,7 @@
|
||||
|
||||
AddItemWithStringIdAndVectorIcon(this, IDC_CLEAR_BROWSING_DATA,
|
||||
IDS_CLEAR_BROWSING_DATA,
|
||||
@@ -1902,9 +1845,6 @@ void AppMenuModel::Build() {
|
||||
@@ -1902,9 +1831,6 @@ void AppMenuModel::Build() {
|
||||
lens::features::kLensOverlay));
|
||||
}
|
||||
|
||||
@@ -114,7 +139,7 @@
|
||||
CreateFindAndEditSubMenu();
|
||||
|
||||
sub_menus_.push_back(
|
||||
@@ -1953,6 +1893,12 @@ void AppMenuModel::Build() {
|
||||
@@ -1953,6 +1879,12 @@ void AppMenuModel::Build() {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -127,11 +152,65 @@
|
||||
AddItemWithStringIdAndVectorIcon(this, IDC_OPTIONS, IDS_SETTINGS,
|
||||
kSettingsMenuIcon);
|
||||
|
||||
@@ -2052,6 +1998,7 @@ bool AppMenuModel::AddDefaultBrowserMenu
|
||||
@@ -2051,35 +1983,22 @@ bool AppMenuModel::AddDefaultBrowserMenu
|
||||
return false;
|
||||
}
|
||||
|
||||
bool AppMenuModel::AddSafetyHubMenuItem() {
|
||||
-bool AppMenuModel::AddSafetyHubMenuItem() {
|
||||
- auto* safety_hub_menu_notification_service =
|
||||
- SafetyHubMenuNotificationServiceFactory::GetForProfile(
|
||||
- browser_->profile());
|
||||
- if (!safety_hub_menu_notification_service) {
|
||||
- return false;
|
||||
- }
|
||||
- safety_hub_menu_notification_service->MaybeTriggerControlSurvey();
|
||||
+bool AppMenuModel::AddUpgradeMenuItem() {
|
||||
+ if (app_menu_icon_controller_ &&
|
||||
+ app_menu_icon_controller_->GetTypeAndSeverity().type ==
|
||||
+ AppMenuIconController::IconType::UPGRADE_NOTIFICATION &&
|
||||
+ browser_defaults::kShowUpgradeMenuItem) {
|
||||
+ const auto update_icon = ui::ImageModel::FromVectorIcon(
|
||||
+ kBrowserToolsUpdateChromeRefreshIcon,
|
||||
+ ui::kColorMenuIcon, kDefaultIconSize);
|
||||
|
||||
- std::optional<MenuNotificationEntry> notification =
|
||||
- safety_hub_menu_notification_service->GetNotificationToShow();
|
||||
- if (!notification.has_value()) {
|
||||
- return false;
|
||||
+ AddItemWithIcon(IDC_UPGRADE_DIALOG, GetUpgradeDialogTitleText(),
|
||||
+ update_icon);
|
||||
+
|
||||
+ return true;
|
||||
}
|
||||
- base::UmaHistogramEnumeration("Settings.SafetyHub.Impression",
|
||||
- safety_hub::SafetyHubSurfaces::kThreeDotMenu);
|
||||
- base::UmaHistogramEnumeration(
|
||||
- "Settings.SafetyHub.EntryPointImpression",
|
||||
- safety_hub::SafetyHubEntryPoint::kMenuNotifications);
|
||||
- base::UmaHistogramEnumeration("Settings.SafetyHub.MenuNotificationImpression",
|
||||
- notification->module);
|
||||
- const auto safety_hub_icon = ui::ImageModel::FromVectorIcon(
|
||||
- kSecurityIcon, ui::kColorMenuIcon, kDefaultIconSize);
|
||||
- AddItemWithIcon(notification->command, notification->label, safety_hub_icon);
|
||||
- SetExecuteCallbackAt(
|
||||
- GetIndexOfCommandId(notification->command).value(),
|
||||
- base::BindRepeating(&AppMenuModel::LogSafetyHubInteractionMetrics,
|
||||
- base::Unretained(this), notification->module));
|
||||
- return true;
|
||||
+
|
||||
+ return false;
|
||||
auto* safety_hub_menu_notification_service =
|
||||
SafetyHubMenuNotificationServiceFactory::GetForProfile(
|
||||
browser_->profile());
|
||||
}
|
||||
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
--- a/chrome/browser/ui/toolbar/app_menu_model.h
|
||||
+++ b/chrome/browser/ui/toolbar/app_menu_model.h
|
||||
@@ -283,6 +283,9 @@ class AppMenuModel : public ui::SimpleMe
|
||||
// boolean indicating whether any menu items were added.
|
||||
bool AddDefaultBrowserMenuItems();
|
||||
|
||||
+ // Adds a nag to relaunch the browser after an update
|
||||
+ bool AddUpgradeMenuItem();
|
||||
+
|
||||
// Adds the Safety Hub menu notifications to the menu. Returns a boolean
|
||||
// indicating whether any menu items were added.
|
||||
[[nodiscard]] bool AddSafetyHubMenuItem();
|
||||
|
||||
@@ -9,21 +9,51 @@
|
||||
}
|
||||
const auto* const color_provider = view->GetColorProvider();
|
||||
cc::PaintFlags flags;
|
||||
@@ -1433,7 +1433,7 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
// Helper method that adds a background to a menu item.
|
||||
auto add_menu_row_background = [item](int vertical_margin,
|
||||
ui::ColorId background_color_id) {
|
||||
@@ -1430,21 +1430,8 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
PopulateMenu(item, model->GetSubmenuModelAt(i));
|
||||
}
|
||||
|
||||
- // Helper method that adds a background to a menu item.
|
||||
- auto add_menu_row_background = [item](int vertical_margin,
|
||||
- ui::ColorId background_color_id) {
|
||||
- constexpr int kBackgroundCornerRadius = 12;
|
||||
+ constexpr int kBackgroundCornerRadius = 8;
|
||||
item->set_vertical_margin(vertical_margin);
|
||||
item->SetMenuItemBackground(MenuItemView::MenuItemBackground(
|
||||
background_color_id, kBackgroundCornerRadius));
|
||||
@@ -1480,7 +1480,7 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
case IDC_SET_BROWSER_AS_DEFAULT: {
|
||||
// Only highlight the default browser item when it is first in the
|
||||
// AppMenu.
|
||||
- item->set_vertical_margin(vertical_margin);
|
||||
- item->SetMenuItemBackground(MenuItemView::MenuItemBackground(
|
||||
- background_color_id, kBackgroundCornerRadius));
|
||||
- item->SetSelectedColorId(ui::kColorAppMenuRowBackgroundHovered);
|
||||
- };
|
||||
-
|
||||
switch (model->GetCommandIdAt(i)) {
|
||||
case IDC_PROFILE_MENU_IN_APP_MENU: {
|
||||
- add_menu_row_background(ChromeLayoutProvider::Get()->GetDistanceMetric(
|
||||
- DISTANCE_CONTENT_LIST_VERTICAL_MULTI),
|
||||
- ui::kColorAppMenuProfileRowBackground);
|
||||
ProfileAttributesEntry* profile_attributes =
|
||||
GetProfileAttributesFromProfile(browser_->profile());
|
||||
if (profile_attributes &&
|
||||
@@ -1458,7 +1445,6 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
break;
|
||||
}
|
||||
case IDC_UPGRADE_DIALOG: {
|
||||
- add_menu_row_background(12, ui::kColorAppMenuUpgradeRowBackground);
|
||||
if (const auto upgrade_substring_text = GetUpgradeDialogSubstringText();
|
||||
!upgrade_substring_text.empty()) {
|
||||
item->AddChildView(
|
||||
@@ -1477,17 +1463,6 @@ void AppMenu::PopulateMenu(MenuItemView*
|
||||
}
|
||||
break;
|
||||
}
|
||||
- case IDC_SET_BROWSER_AS_DEFAULT: {
|
||||
- // Only highlight the default browser item when it is first in the
|
||||
- // AppMenu.
|
||||
- if (i == 0) {
|
||||
+ if ((false)) {
|
||||
add_menu_row_background(
|
||||
views::LayoutProvider::Get()->GetDistanceMetric(
|
||||
views::DISTANCE_CONTROL_VERTICAL_TEXT_PADDING),
|
||||
- add_menu_row_background(
|
||||
- views::LayoutProvider::Get()->GetDistanceMetric(
|
||||
- views::DISTANCE_CONTROL_VERTICAL_TEXT_PADDING),
|
||||
- ui::kColorAppMenuUpgradeRowBackground);
|
||||
- }
|
||||
- break;
|
||||
- }
|
||||
case IDC_EDIT_MENU: {
|
||||
ui::ButtonMenuItemModel* submodel = model->GetButtonMenuItemAt(i);
|
||||
DCHECK_EQ(IDC_CUT, submodel->GetCommandIdAt(0));
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/ui/native_theme/features/native_theme_features.cc
|
||||
+++ b/ui/native_theme/features/native_theme_features.cc
|
||||
@@ -46,7 +46,7 @@ BASE_FEATURE(kFluentScrollbar,
|
||||
// once it is complete.
|
||||
BASE_FEATURE(kFluentOverlayScrollbar,
|
||||
"FluentOverlayScrollbar",
|
||||
- base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
+ base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
||||
} // namespace features
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
+9
-2
@@ -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
|
||||
@@ -150,6 +151,7 @@ helium/core/add-low-power-framerate-flag.patch
|
||||
helium/core/add-update-channel-flag.patch
|
||||
helium/core/add-updater-preference.patch
|
||||
helium/core/add-disable-ech-flag.patch
|
||||
helium/core/disable-outdated-build-detector.patch
|
||||
|
||||
helium/settings/move-search-suggest.patch
|
||||
helium/settings/remove-autofill.patch
|
||||
@@ -162,6 +164,9 @@ helium/settings/remove-safety-hub-entry-points.patch
|
||||
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
|
||||
@@ -178,11 +183,13 @@ helium/ui/tab-strip-controls.patch
|
||||
helium/ui/toolbar.patch
|
||||
helium/ui/omnibox.patch
|
||||
helium/ui/app-menu-style.patch
|
||||
helium/ui/app-menu-model.patch
|
||||
helium/ui/app-menu-button.patch
|
||||
helium/ui/remove-reading-list-from-app-menu.patch
|
||||
helium/ui/fix-customize-side-panel.patch
|
||||
helium/ui/immersive-padding.patch
|
||||
helium/ui/side-panel.patch
|
||||
helium/ui/layout-provider.patch
|
||||
helium/ui/app-menu-model.patch
|
||||
helium/ui/remove-dead-toolbar-actions.patch
|
||||
helium/ui/remove-dead-profile-actions.patch
|
||||
helium/ui/clean-up-installed-extension-bubble.patch
|
||||
@@ -196,7 +203,6 @@ helium/ui/square-ntp-monograms.patch
|
||||
helium/ui/set-gray-as-default-theme.patch
|
||||
helium/ui/improve-toast.patch
|
||||
helium/ui/square-interstitial-buttons.patch
|
||||
helium/ui/remove-reading-list-from-app-menu.patch
|
||||
helium/ui/center-window-on-launch.patch
|
||||
helium/ui/remove-devtools-annoyances.patch
|
||||
helium/ui/bookmarks-bar-padding.patch
|
||||
@@ -212,3 +218,4 @@ helium/ui/fix-pwa-toolbar.patch
|
||||
helium/ui/top-container.patch
|
||||
helium/ui/status-bubble.patch
|
||||
helium/ui/clean-incognito-guest-ntp.patch
|
||||
helium/ui/enable-fluent-scrollbar.patch
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
1
|
||||
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