Compare commits

...

21 Commits

Author SHA1 Message Date
wukko a25b8fdf15 revision: bump to 12 2025-07-24 20:38:09 +06:00
wukko 07314070e0 helium/core/split-view: fix corner radius 2025-07-24 20:32:46 +06:00
wukko b8e154c0a4 merge: update to ungoogled-chromium 138.0.7204.168 2025-07-24 18:45:59 +06:00
jj edd517e75f extras: update onboarding 2025-07-24 12:04:50 +00:00
jj dc4a8b6686 patches/scan-chrome-native-messaging-hosts: fix windows constant type 2025-07-23 21:26:08 +00:00
Blaise 5fd0da8902 Update to Chromium 138.0.7204.168 2025-07-23 15:43:49 -05:00
jj 2fe35f1cbc extras: update onboarding 2025-07-23 14:37:25 +00:00
jj c0e49a6e5f patches/disable-gcm: disable additional gcm client methods 2025-07-18 16:49:32 +00:00
wukko a68148b1b3 revision: bump to 11 2025-07-18 14:43:27 +06:00
wukko d7a24f79d3 patches: refresh for 138.0.7204.157 2025-07-18 14:27:57 +06:00
wukko ba4fee2f1c merge: update to ungoogled-chromium 138.0.7204.157 2025-07-18 13:01:57 +06:00
Derron Hu ada3db3214 Add -snld flag to 7z (#3387) 2025-07-17 17:29:20 -05:00
wukko 1fe2601442 revision: bump revision to 10 2025-07-18 00:14:52 +06:00
wukko 69ec6832db helium/settings/privacy-page: update descriptions, clean up sections
- updated descriptions of security & site settings pages to reflect what they actually contain
- removed the "third party cookies" section, it's accessible via site settings. 3rd party cookies are blocked by default
2025-07-18 00:00:22 +06:00
wukko b7e051ff66 helium/ui/omnibox: fix IPH_SUGGESTION height & icon alignment 2025-07-17 22:21:09 +06:00
wukko 5e6679af3b extras: update onboarding 2025-07-17 22:02:16 +06:00
wukko 127c193c16 helium/core: refresh a patch that wasn't refreshed during string update 2025-07-17 21:29:24 +06:00
wukko 1430f2f69b helium/ui: fix status bubble padding & refactor
no more extra padding on right
2025-07-17 21:27:36 +06:00
wukko 593fd56dd9 helium/ui: remove third party cookies icon from location bar
also removed other unused icons

third party cookies are blocked in helium by default, so showing an icon for that every time it happens is unnecessary. the user can enable third party cookies in site settings -> cookies without leaving the page.
2025-07-17 21:26:39 +06:00
wukko 10a9c6387a helium/core: update helium pref toggle titles and descriptions 2025-07-17 20:46:17 +06:00
networkException 4473e83be8 Update to Chromium 138.0.7204.157 2025-07-15 21:09:55 +02:00
20 changed files with 294 additions and 45 deletions
+1 -1
View File
@@ -1 +1 @@
138.0.7204.100
138.0.7204.168
+2 -2
View File
@@ -5,8 +5,8 @@ sha256 = cd954c7257f126be871f79ecf8fff143425708d5d33501d0ba870fa466dafbe7
output_path = ./components/resources/default_100_percent/search_engine_choice
[onboarding]
version = 202505202136
version = 202507241203
url = https://github.com/imputnet/helium-onboarding/releases/download/%(version)s/helium-onboarding-%(version)s.tar.gz
download_filename = onboarding-page-%(version)s.tar.gz
sha256 = 7719da3c819a1f52c5688d223ba190b268312de78934959c5a909c0018ebe384
sha256 = ee993f917371f53f5f9e5fee347425d96f1793a5613058dc18f123f41e84f02f
output_path = ./components/helium_onboarding
@@ -2,7 +2,46 @@
--- a/components/gcm_driver/gcm_client_impl.cc
+++ b/components/gcm_driver/gcm_client_impl.cc
@@ -431,6 +431,7 @@ void GCMClientImpl::StartGCM() {
@@ -296,38 +296,6 @@ void GCMClientImpl::Initialize(
}
void GCMClientImpl::Start(StartMode start_mode) {
- DCHECK_NE(UNINITIALIZED, state_);
- DCHECK(io_task_runner_->RunsTasksInCurrentSequence());
-
- if (state_ == LOADED) {
- // Start the GCM if not yet.
- if (start_mode == IMMEDIATE_START) {
- // Give up the scheduling to wipe out the store since now some one starts
- // to use GCM.
- destroying_gcm_store_ptr_factory_.InvalidateWeakPtrs();
-
- StartGCM();
- }
- return;
- }
-
- // The delay start behavior will be abandoned when Start has been called
- // once with IMMEDIATE_START behavior.
- if (start_mode == IMMEDIATE_START)
- start_mode_ = IMMEDIATE_START;
-
- // Bail out if the loading is not started or completed.
- if (state_ != INITIALIZED)
- return;
-
- // Once the loading is completed, the check-in will be initiated.
- // If we're in lazy start mode, don't create a new store since none is really
- // using GCM functionality yet.
- gcm_store_->Load((start_mode == IMMEDIATE_START) ? GCMStore::CREATE_IF_MISSING
- : GCMStore::DO_NOT_CREATE,
- base::BindOnce(&GCMClientImpl::OnLoadCompleted,
- weak_ptr_factory_.GetWeakPtr()));
- state_ = LOADING;
}
void GCMClientImpl::OnLoadCompleted(
@@ -431,6 +399,7 @@ void GCMClientImpl::StartGCM() {
void GCMClientImpl::InitializeMCSClient() {
DCHECK(network_connection_tracker_);
@@ -10,7 +49,37 @@
std::vector<GURL> endpoints;
endpoints.push_back(gservices_settings_.GetMCSMainEndpoint());
GURL fallback_endpoint = gservices_settings_.GetMCSFallbackEndpoint();
@@ -610,23 +611,6 @@ void GCMClientImpl::RemoveHeartbeatInter
@@ -482,8 +451,6 @@ void GCMClientImpl::OnReady(const std::v
void GCMClientImpl::StartMCSLogin() {
DCHECK_EQ(READY, state_);
DCHECK(device_checkin_info_.IsValid());
- mcs_client_->Login(device_checkin_info_.android_id,
- device_checkin_info_.secret);
}
void GCMClientImpl::DestroyStoreWhenNotNeeded() {
@@ -554,8 +521,6 @@ void GCMClientImpl::SetLastTokenFetchTim
void GCMClientImpl::UpdateHeartbeatTimer(
std::unique_ptr<base::RetainingOneShotTimer> timer) {
DCHECK(io_task_runner_->RunsTasksInCurrentSequence());
- DCHECK(mcs_client_);
- mcs_client_->UpdateHeartbeatTimer(std::move(timer));
}
void GCMClientImpl::AddInstanceIDData(const std::string& app_id,
@@ -598,35 +563,14 @@ void GCMClientImpl::GetInstanceIDData(co
void GCMClientImpl::AddHeartbeatInterval(const std::string& scope,
int interval_ms) {
DCHECK(io_task_runner_->RunsTasksInCurrentSequence());
- DCHECK(mcs_client_);
- mcs_client_->AddHeartbeatInterval(scope, interval_ms);
}
void GCMClientImpl::RemoveHeartbeatInterval(const std::string& scope) {
DCHECK(io_task_runner_->RunsTasksInCurrentSequence());
- DCHECK(mcs_client_);
- mcs_client_->RemoveHeartbeatInterval(scope);
}
void GCMClientImpl::StartCheckin() {
DCHECK(io_task_runner_->RunsTasksInCurrentSequence());
@@ -34,7 +103,7 @@
}
void GCMClientImpl::OnCheckinCompleted(
@@ -683,24 +667,6 @@ void GCMClientImpl::SetGServicesSettings
@@ -683,24 +627,6 @@ void GCMClientImpl::SetGServicesSettings
void GCMClientImpl::SchedulePeriodicCheckin() {
DCHECK(io_task_runner_->RunsTasksInCurrentSequence());
@@ -59,3 +128,29 @@
}
base::TimeDelta GCMClientImpl::GetTimeToNextCheckin() const {
@@ -1124,25 +1050,6 @@ void GCMClientImpl::Send(const std::stri
const OutgoingMessage& message) {
DCHECK_EQ(state_, READY);
DCHECK(io_task_runner_->RunsTasksInCurrentSequence());
-
- mcs_proto::DataMessageStanza stanza;
- stanza.set_ttl(message.time_to_live);
- stanza.set_sent(clock_->Now().ToInternalValue() /
- base::Time::kMicrosecondsPerSecond);
- stanza.set_id(message.id);
- stanza.set_from(kSendMessageFromValue);
- stanza.set_to(receiver_id);
- stanza.set_category(app_id);
-
- for (auto iter = message.data.begin(); iter != message.data.end(); ++iter) {
- mcs_proto::AppData* app_data = stanza.add_app_data();
- app_data->set_key(iter->first);
- app_data->set_value(iter->second);
- }
-
- MCSMessage mcs_message(stanza);
- DVLOG(1) << "MCS message size: " << mcs_message.size();
- mcs_client_->SendMessage(mcs_message);
}
std::string GCMClientImpl::GetStateString() const {
@@ -930,7 +930,7 @@
"//chrome/browser/search/background",
"//chrome/browser/search/background:constants",
"//chrome/browser/search_engine_choice:unit_tests",
@@ -8413,7 +8405,6 @@ test("unit_tests") {
@@ -8414,7 +8406,6 @@ test("unit_tests") {
"//components/webapps/browser",
"//services/metrics/public/cpp:ukm_builders",
"//services/network:test_support",
@@ -41,7 +41,7 @@
#include "base/feature_list.h"
#include "base/format_macros.h"
#include "base/functional/bind.h"
@@ -566,6 +567,15 @@ AutocompleteController::AutocompleteCont
@@ -568,6 +569,15 @@ AutocompleteController::AutocompleteCont
steady_state_omnibox_position_(
metrics::OmniboxEventProto::UNKNOWN_POSITION) {
provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes();
+2 -2
View File
@@ -721,10 +721,10 @@
When enabled, Helium will proxy extension downloads and updates to protect your privacy. When disabled, downloading and updating extensions will not work.
</message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE" desc="Toggle for enabling/disabling of downloading bangs">
+ Allow downloading the !bang list
+ Allow downloading the !bangs list
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of downloading bangs">
+ When enabled, Helium will fetch our list of bangs that help you browse the Internet faster, such as !w or !gh.
+ 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>
<message name="IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE" desc="Text input for overriding the Helium services server">
Use your own instance of Helium services
@@ -140,10 +140,10 @@ TODO: guard services_page.html with is_mac
When enabled, Helium will fetch dictionary files used for spell checking when requested.
</message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_UPDATE" desc="Toggle for automatic update downloads">
+ Allow fetching browser updates
+ Allow automatic browser updates
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_UPDATE_DESCRIPTION" desc="Description of the toggle for automatic update downloads">
+ When enabled, Helium will download and install browser updates whenever they are available.
+ 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>
<message name="IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE" desc="Text input for overriding the Helium services server">
Use your own instance of Helium services
@@ -216,7 +216,7 @@
+++ b/chrome/app/settings_strings.grdp
@@ -1852,6 +1852,12 @@
<message name="IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of all Helium services">
When enabled, Helium will be able to connect to anonymous services for providing additional functionality, such as native !bangs or extension downloads.
When enabled, Helium will be able to connect to anonymous web services to provide additional functionality. When disabled, additional features will not work.
</message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_EXT_PROXY_TOGGLE" desc="Toggle for enabling/disabling of downloading and proxying extensions">
+ Proxy extension downloads and updates
@@ -146,7 +146,7 @@
+++ b/chrome/app/settings_strings.grdp
@@ -1864,6 +1864,12 @@
<message name="IDS_SETTINGS_HELIUM_SERVICES_BANGS_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of downloading bangs">
When enabled, Helium will fetch our list of bangs that help you browse the Internet faster, such as !w or !gh.
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>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_SPELLCHECK_TOGGLE" desc="Toggle for enabling/disabling of downloading spellcheck files">
+ Allow downloading dictionary files for spell checking
@@ -147,7 +147,7 @@
+bool GetChromeUserDataDirectory(base::FilePath* result) {
+ if (!base::PathService::Get(base::DIR_LOCAL_APP_DATA, result))
+ return false;
+ *result = result->Append("Google\\Chrome");
+ *result = result->Append(L"Google\\Chrome");
+ *result = result->Append(chrome::kUserDataDirname);
+ return true;
+}
+10 -6
View File
@@ -8,22 +8,22 @@
+ Helium services
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_DESCRIPTION" desc="Description of the controls available on the Helium services settings page">
+ Control Helium services and whether your browser is allowed to use them
+ Manage what Helium services are allowed in your browser
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_TOGGLE" desc="Global toggle for enabling/disabling of all Helium services">
+ Allow connecting to Helium services
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_TOGGLE_DESCRIPTION" desc="Description of the toggle for enabling/disabling of all Helium services">
+ When enabled, Helium will be able to connect to anonymous services for providing additional functionality, such as native !bangs or extension downloads.
+ When enabled, Helium will be able to connect to anonymous web services to provide additional functionality. When disabled, additional features will not work.
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE" desc="Text input for overriding the Helium services server">
+ Use your own instance of Helium services
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION" desc="Description of the text input for overriding the Helium services server">
+ You can host your own instance of Helium services and use it in your browser instead of the default services server. HTTPS only.
+ You can host your own instance of Helium services and use it in your browser instead of the default one. HTTPS only.
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_DESCRIPTION_WARNING" desc="Warning section of description for overriding the Helium services server">
+ Do not use this field unless you know exactly what you're doing. Do not paste URLs from other people here, they're trying to steal your data. We are not responsible for any damages caused by using a custom server.
+ Do not use this field unless you know exactly what you are doing. Never paste URLs from other people here, they are trying to steal your data. We are not responsible for any damages caused by using a custom server and will not be able to help you.
+ </message>
+ <message name="IDS_SETTINGS_HELIUM_SERVICES_OVERRIDE_ARIA_LABEL" desc="ARIA label of the text input for overriding the Helium services server">
+ Custom origin URL for Helium services
@@ -129,7 +129,7 @@
"privacy_sandbox/privacy_sandbox_interest_item.ts",
--- /dev/null
+++ b/chrome/browser/resources/settings/privacy_page/services_page.html
@@ -0,0 +1,41 @@
@@ -0,0 +1,45 @@
+<style include="cr-shared-style settings-shared">
+ .label-wrapper {
+ padding: var(--cr-section-vertical-padding) 0;
@@ -153,7 +153,11 @@
+ <div class="flex">
+ <div class="flex label-wrapper">
+ <div class="label">$i18n{heliumOriginOverride}</div>
+ <div class="cr-secondary-text label">$i18n{heliumOriginOverrideDescription} <b>$i18n{heliumOriginOverrideDescriptionWarning}</b></div>
+ <div class="cr-secondary-text label">
+ $i18n{heliumOriginOverrideDescription}
+ <br><br>
+ <b>$i18n{heliumOriginOverrideDescriptionWarning}</b>
+ </div>
+ </div>
+ <cr-input
+ id="heliumOriginOverride"
+11 -4
View File
@@ -38,8 +38,9 @@
static constexpr int kMinWebContentsWidth = 200;
static constexpr double kMinWebContentsWidthPercentage = 0.1;
- static constexpr int kContentCornerRadius = 6;
- static constexpr int kContentOutlineCornerRadius = 8;
+ static constexpr int kContentCornerRadius = 8;
static constexpr int kContentOutlineCornerRadius = 8;
+ static constexpr int kContentOutlineCornerRadius = 9;
static constexpr int kContentOutlineThickness = 1;
- static constexpr int kSplitViewContentInset = 8;
- static constexpr int kSplitViewContentPadding = 4;
@@ -129,13 +130,19 @@
return;
}
@@ -347,9 +327,6 @@ void MultiContentsView::UpdateContentsBo
@@ -343,13 +323,9 @@ void MultiContentsView::UpdateContentsBo
kColorMulitContentsViewActiveContentOutline)
: GetColorProvider()->GetColor(
kColorMulitContentsViewInactiveContentOutline);
- contents_container_view->SetBorder(views::CreatePaddedBorder(
+ contents_container_view->SetBorder(
views::CreateRoundedRectBorder(kContentOutlineThickness,
kContentOutlineCornerRadius, color),
gfx::Insets(kSplitViewContentPadding)));
- kContentOutlineCornerRadius, color),
- gfx::Insets(kSplitViewContentPadding)));
- // Mini toolbar should only be visible for the inactive contents
- // container view.
- contents_container_view->GetMiniToolbar()->SetVisible(!is_active);
+ kContentOutlineCornerRadius, color));
};
for (auto* contents_container_view : contents_container_views_) {
set_contents_border_and_mini_toolbar(contents_container_view);
@@ -0,0 +1,69 @@
--- a/chrome/app/settings_strings.grdp
+++ b/chrome/app/settings_strings.grdp
@@ -1837,6 +1837,12 @@
users to manage security settings">
Security
</message>
+ <message name="IDS_SETTINGS_PERMISSIONS_DESCRIPTION_NORMAL" desc="Description of the controls available on the permissions and site content settings page">
+ Manage site permissions and content settings (cookies, pop-ups, and more)
+ </message>
+ <message name="IDS_SETTINGS_SECURITY_DESCRIPTION_NORMAL" desc="Description of the controls available on the security settings page">
+ Connection security, DNS settings, certificate management, and other security settings
+ </message>
<message name="IDS_SETTINGS_SECURITY_DESCRIPTION" desc="Description of the controls available on the security settings page">
Safe Browsing (protection from dangerous sites) and other security settings
</message>
--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
@@ -1846,9 +1846,9 @@ void AddPrivacyStrings(content::WebUIDat
IDS_SETTINGS_ENABLE_DO_NOT_TRACK_DIALOG_LEARN_MORE_ACCESSIBILITY_LABEL},
// TODO(crbug.com/40122957): This string is no longer used. Remove.
{"permissionsPageTitle", IDS_SETTINGS_PERMISSIONS},
- {"permissionsPageDescription", IDS_SETTINGS_PERMISSIONS_DESCRIPTION},
+ {"permissionsPageDescription", IDS_SETTINGS_PERMISSIONS_DESCRIPTION_NORMAL},
{"securityPageTitle", IDS_SETTINGS_SECURITY},
- {"securityPageDescription", IDS_SETTINGS_SECURITY_DESCRIPTION},
+ {"securityPageDescription", IDS_SETTINGS_SECURITY_DESCRIPTION_NORMAL},
{"heliumServicesTitle", IDS_SETTINGS_HELIUM_SERVICES},
{"heliumServicesDescription", IDS_SETTINGS_HELIUM_SERVICES_DESCRIPTION},
{"heliumServicesToggle", IDS_SETTINGS_HELIUM_SERVICES_TOGGLE},
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.html
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html
@@ -51,6 +51,7 @@
label="$i18n{clearBrowsingData}"
sub-label="$i18n{clearBrowsingDataDescription}"
on-click="onClearBrowsingDataClick_"></cr-link-row>
+ <template is="dom-if" if="[[false]]">
<cr-link-row id="thirdPartyCookiesLinkRow"
start-icon="privacy:cookie"
class="hr" label="$i18n{thirdPartyCookiesLinkRowLabel}"
@@ -61,6 +62,7 @@
on-click="onCookiesClick_"
role-description="$i18n{subpageArrowRoleDescription}">
</cr-link-row>
+ </template>
<template is="dom-if" if="[[enableIncognitoTrackingProtections_]]">
<cr-link-row id="incognitoTrackingProtectionsLinkRow" class="hr"
start-icon="settings:visibility-off"
@@ -85,16 +87,16 @@
role-description="$i18n{subpageArrowRoleDescription}">
</cr-link-row>
</template>
- <cr-link-row id="securityLinkRow" start-icon="privacy:lock"
- class="hr" label="$i18n{securityPageTitle}"
- sub-label="$i18n{securityPageDescription}"
- on-click="onSecurityPageClick_"
- role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
<cr-link-row id="permissionsLinkRow" start-icon="privacy:page-info"
class="hr" label="$i18n{siteSettings}"
sub-label="$i18n{permissionsPageDescription}"
on-click="onPermissionsPageClick_"
role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
+ <cr-link-row id="securityLinkRow" start-icon="privacy:lock"
+ class="hr" label="$i18n{securityPageTitle}"
+ sub-label="$i18n{securityPageDescription}"
+ on-click="onSecurityPageClick_"
+ role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
<cr-link-row id="heliumServicesLinkRow" start-icon="cr:chrome-product"
class="hr" label="$i18n{heliumServicesTitle}"
sub-label="$i18n{heliumServicesDescription}"
+1 -1
View File
@@ -59,7 +59,7 @@
#include "components/search_engines/template_url_service.h"
#include "components/search_engines/template_url_starter_pack_data.h"
#include "components/strings/grit/components_strings.h"
@@ -1850,7 +1851,21 @@ void AutocompleteController::UpdateKeywo
@@ -1855,7 +1856,21 @@ void AutocompleteController::UpdateKeywo
// - For contextual search matches, the description indicates the
// alternative UX because they're opened in the side panel.
i->description = template_url->AdjustedShortNameForLocaleDirection();
+39 -5
View File
@@ -100,7 +100,41 @@
auto location_icon_view =
std::make_unique<LocationIconView>(omnibox_chip_font_list, this, this);
@@ -490,7 +493,7 @@ bool LocationBarView::IsInitialized() co
@@ -391,22 +394,13 @@ void LocationBarView::Init() {
// first so that they appear on the left side of the icon container.
// TODO(crbug.com/40835681): Improve the ordering heuristics for page action
// icons and determine a way to handle simultaneous icon animations.
- if (base::FeatureList::IsEnabled(commerce::kProductSpecifications)) {
- params.types_enabled.push_back(
- PageActionIconType::kProductSpecifications);
- }
- params.types_enabled.push_back(PageActionIconType::kDiscounts);
- params.types_enabled.push_back(PageActionIconType::kPriceInsights);
- params.types_enabled.push_back(PageActionIconType::kPriceTracking);
if (optimization_guide::features::ShouldEnableOptimizationGuideIconView()) {
params.types_enabled.push_back(PageActionIconType::kOptimizationGuide);
}
params.types_enabled.push_back(PageActionIconType::kClickToCall);
params.types_enabled.push_back(PageActionIconType::kSmsRemoteFetcher);
- params.types_enabled.push_back(PageActionIconType::kAutofillAddress);
- params.types_enabled.push_back(PageActionIconType::kManagePasswords);
- params.types_enabled.push_back(PageActionIconType::kChangePassword);
+
if (!apps::features::ShouldShowLinkCapturingUX()) {
params.types_enabled.push_back(PageActionIconType::kIntentPicker);
}
@@ -416,9 +410,6 @@ void LocationBarView::Init() {
params.types_enabled.push_back(PageActionIconType::kZoom);
params.types_enabled.push_back(PageActionIconType::kFileSystemAccess);
- params.types_enabled.push_back(PageActionIconType::kCookieControls);
- params.types_enabled.push_back(
- PageActionIconType::kPaymentsOfferNotification);
params.types_enabled.push_back(PageActionIconType::kMemorySaver);
}
params.types_enabled.push_back(PageActionIconType::kSaveCard);
@@ -490,7 +481,7 @@ bool LocationBarView::IsInitialized() co
int LocationBarView::GetBorderRadius() const {
return ChromeLayoutProvider::Get()->GetCornerRadiusMetric(
@@ -109,7 +143,7 @@
}
std::unique_ptr<views::Background> LocationBarView::CreateRoundRectBackground(
@@ -690,9 +693,9 @@ void LocationBarView::Layout(PassKey) {
@@ -690,9 +681,9 @@ void LocationBarView::Layout(PassKey) {
// TODO(manukh): Move constants to layout_constants.cc.
// The padding between the left edges of the location bar and the LHS icon,
// e.g. the page info icon, the google G icon, the selected suggestion icon.
@@ -121,7 +155,7 @@
// Apply indentation to align the omnibox input icon and the text with those
// of the suggestions in the popup. However, there are two exceptions where
@@ -711,22 +714,22 @@ void LocationBarView::Layout(PassKey) {
@@ -711,22 +702,22 @@ void LocationBarView::Layout(PassKey) {
!location_icon_view_->ShouldShowLabel() &&
!ShouldShowKeywordBubble();
if (should_indent) {
@@ -148,7 +182,7 @@
}
LocationBarLayout leading_decorations(LocationBarLayout::Position::kLeftEdge,
@@ -1183,7 +1186,7 @@ int LocationBarView::GetMinimumTrailingW
@@ -1183,7 +1174,7 @@ int LocationBarView::GetMinimumTrailingW
}
gfx::Rect LocationBarView::GetLocalBoundsWithoutEndcaps() const {
@@ -157,7 +191,7 @@
gfx::Rect bounds_without_endcaps(GetLocalBounds());
bounds_without_endcaps.Inset(gfx::Insets::VH(0, border_radius));
return bounds_without_endcaps;
@@ -1197,9 +1200,9 @@ void LocationBarView::RefreshBackground(
@@ -1197,9 +1188,9 @@ void LocationBarView::RefreshBackground(
const bool high_contrast = GetNativeTheme()->UserHasContrastPreference();
const auto* const color_provider = GetColorProvider();
+10 -1
View File
@@ -137,12 +137,21 @@
// When a PEDAL suggestion has been split out to its own row, apply a square
// background with a distinctive color to the respective icon. Journeys
// suggestion rows should also receive the same treatment.
@@ -568,7 +567,7 @@ gfx::Size OmniboxMatchCellView::Calculat
}
} else if (layout_style_ == LayoutStyle::IPH_SUGGESTION) {
// IPH suggestions have extra height.
- height = kRowHeight + 4;
+ height = kRowHeight;
} else {
// The height for traditional 1-line matches.
height = kRowHeight;
@@ -584,7 +583,7 @@ int OmniboxMatchCellView::GetImageIndent
// align with any other UI; it's just arbitrarily chosen by UX. Hence, it's
// not derived from other matches' `indent` below.
if (layout_style_ == LayoutStyle::IPH_SUGGESTION) {
- return 2;
+ return 0;
+ return -3;
}
// The entity, answer, and icon images are horizontally centered within their
+41 -11
View File
@@ -83,20 +83,41 @@
// Snap to pixels to avoid shadow blurriness.
gfx::Size scaled_size = gfx::ScaleToRoundedSize(size(), scale);
@@ -502,10 +471,8 @@ void StatusView::OnPaint(gfx::Canvas* ca
// The shadow will overlap the window frame. Clip it off when the bubble is
// docked. Otherwise when the bubble is floating preserve the full shadow so
// the bubble looks complete.
@@ -499,20 +468,7 @@ void StatusView::OnPaint(gfx::Canvas* ca
// where the web content is visible.
const int shadow_thickness_pixels = std::floor(kShadowThickness * scale);
- // The shadow will overlap the window frame. Clip it off when the bubble is
- // docked. Otherwise when the bubble is floating preserve the full shadow so
- // the bubble looks complete.
- int clip_left =
- style_ == BubbleStyle::kStandard ? shadow_thickness_pixels : 0;
- int clip_right =
- style_ == BubbleStyle::kStandardRight ? shadow_thickness_pixels : 0;
+ int clip_left = 0;
+ int clip_right = 0;
if (base::i18n::IsRTL()) {
std::swap(clip_left, clip_right);
}
@@ -553,9 +520,6 @@ void StatusView::OnPaint(gfx::Canvas* ca
- if (base::i18n::IsRTL()) {
- std::swap(clip_left, clip_right);
- }
-
- const int clip_bottom = clip_left || clip_right ? shadow_thickness_pixels : 0;
gfx::Rect clip_rect(scaled_size);
- clip_rect.Inset(gfx::Insets::TLBR(0, clip_left, clip_bottom, clip_right));
canvas->ClipRect(clip_rect);
gfx::RectF bubble_rect{gfx::SizeF(scaled_size)};
@@ -522,11 +478,7 @@ void StatusView::OnPaint(gfx::Canvas* ca
// bubble bounds by 1 DIP minus 1 pixel. Failing to do this results in drawing
// further and further outside the window as the scale increases.
const int inset = shadow_thickness_pixels - 1;
- bubble_rect.Inset(
- gfx::InsetsF()
- .set_left(style_ == BubbleStyle::kStandardRight ? 0 : inset)
- .set_right(style_ == BubbleStyle::kStandardRight ? inset : 0)
- .set_bottom(inset));
+ bubble_rect.Inset(gfx::InsetsF::VH(inset, inset));
// Align to pixel centers now that the layout is correct.
bubble_rect.Inset(0.5);
@@ -553,9 +505,6 @@ void StatusView::OnPaint(gfx::Canvas* ca
: kColorStatusBubbleBackgroundFrameInactive;
flags.setColor(color_provider->GetColor(id));
canvas->sk_canvas()->drawPath(fill_path, flags);
@@ -106,7 +127,7 @@
}
DEFINE_ENUM_CONVERTERS(StatusView::BubbleState,
@@ -769,7 +733,9 @@ void StatusBubbleViews::Reposition() {
@@ -769,7 +718,9 @@ void StatusBubbleViews::Reposition() {
int overlap = kShadowThickness;
int height = GetPreferredHeight();
int base_view_height = base_view_->bounds().height();
@@ -117,3 +138,12 @@
SetBounds(origin.x(), origin.y(), base_view_->bounds().width() / 3, height);
}
@@ -807,7 +758,7 @@ int StatusBubbleViews::GetWidthForURL(co
// Get the width of the elided url
int elided_url_width = gfx::GetStringWidth(url_string, GetFont());
// Add proper paddings
- return elided_url_width + (kShadowThickness + kTextHorizPadding) * 2 + 1;
+ return elided_url_width + (kShadowThickness + kTextHorizPadding) * 2;
}
void StatusBubbleViews::SetStatus(const std::u16string& status_text) {
+1
View File
@@ -158,6 +158,7 @@ helium/settings/about-page-tweaks.patch
helium/settings/remove-translate-section.patch
helium/settings/remove-safety-hub-entry-points.patch
helium/settings/reenable-update-status.patch
helium/settings/privacy-page-tweaks.patch
helium/hop/setup.patch
helium/hop/disable-password-manager.patch
+1 -1
View File
@@ -1 +1 @@
9
12
+1 -1
View File
@@ -96,7 +96,7 @@ def _extract_tar_with_7z(binary, archive_path, output_dir, relative_to):
output_dir / relative_to)
raise FileExistsError()
cmd1 = (binary, 'x', str(archive_path), '-so')
cmd2 = (binary, 'x', '-si', '-aoa', '-ttar', f'-o{str(output_dir)}')
cmd2 = (binary, 'x', '-si', '-snld', '-aoa', '-ttar', f'-o{str(output_dir)}')
get_logger().debug('7z command line: %s | %s', ' '.join(cmd1), ' '.join(cmd2))
proc1 = subprocess.Popen(cmd1, stdout=subprocess.PIPE) #pylint: disable=consider-using-with