Compare commits

...

8 Commits

Author SHA1 Message Date
wukko 46b3fa7099 revision: bump to 4 2025-08-21 19:02:28 +06:00
wukko b249347978 merge: update to ungoogled-chromium 139.0.7258.138 2025-08-21 18:41:50 +06:00
Blaise 803eb8c3f5 Update to Chromium 139.0.7258.138 2025-08-19 16:06:15 -05:00
wukko 9ec3ed6ecd revision: bump to 3 2025-08-16 18:59:46 +06:00
wukko f240e14a58 helium/core: disable outdated build detector
it's not relevant for helium, we don't have background updaters
2025-08-16 18:59:46 +06:00
wukko b497f44124 helium/ui: fix app menu button styling in label state
- fixed padding & size
- background and icon are no longer highlighted with emphasis color in label state
- icon color is no longer blue
- enabled border in label state
- removed chrome-only bloat code for randomizing the update text
2025-08-16 18:59:46 +06:00
wukko 475fd063f3 helium/ui/app-menu: remove row bg, fix separators, refactor
also fixed related padding & colors
2025-08-16 18:59:46 +06:00
wukko 31bdefc2de helium/settings: fix text on cookies page
- replaced google.com with example.com in third party cookies section
- updated "do not track" popup text to not glaze evil tracking practices
- removed "learn more" link from do not track popup
2025-08-16 18:59:38 +06:00
9 changed files with 311 additions and 30 deletions
+1 -1
View File
@@ -1 +1 @@
139.0.7258.127
139.0.7258.138
+1
View File
@@ -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
@@ -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);
@@ -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_">
+98
View File
@@ -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() {
+89 -10
View File
@@ -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();
+46 -16
View File
@@ -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));
+5 -2
View File
@@ -151,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
@@ -163,6 +164,7 @@ 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/hop/setup.patch
helium/hop/disable-password-manager.patch
@@ -179,11 +181,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
@@ -197,7 +201,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
+1 -1
View File
@@ -1 +1 @@
2
4