Skip to content

Commit eaee628

Browse files
committed
Update patches for M142
1 parent 09101f3 commit eaee628

4 files changed

+23
-23
lines changed

patch/0001-Patch-installer-to-close-previous-browser-instance-o.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From b66ad118bce15fda95bd0a7b537f57a68270a524 Mon Sep 17 00:00:00 2001
1+
From 6672d08c0f5587b6450b2137cf41cd69acc37b10 Mon Sep 17 00:00:00 2001
22
From: Hibiki Tachibana <57486057+Hibbiki@users.noreply.github.com>
33
Date: Thu, 5 Aug 2021 02:09:34 +0200
44
Subject: [PATCH 1/4] Patch installer to close previous browser instance on
@@ -10,7 +10,7 @@ Signed-off-by: Hibiki Tachibana <57486057+Hibbiki@users.noreply.github.com>
1010
1 file changed, 48 insertions(+)
1111

1212
diff --git a/chrome/installer/setup/install_worker.cc b/chrome/installer/setup/install_worker.cc
13-
index e92470fe15e08..20d6c9369eeb4 100644
13+
index 3393a297bb712..40f877019cd32 100644
1414
--- a/chrome/installer/setup/install_worker.cc
1515
+++ b/chrome/installer/setup/install_worker.cc
1616
@@ -29,6 +29,8 @@
@@ -30,7 +30,7 @@ index e92470fe15e08..20d6c9369eeb4 100644
3030
#include "chrome/install_static/buildflags.h"
3131
#include "chrome/install_static/install_details.h"
3232
#include "chrome/install_static/install_modes.h"
33-
@@ -218,6 +221,46 @@ void AddDeleteUninstallEntryForMSIWorkItems(
33+
@@ -198,6 +201,46 @@ void AddDeleteUninstallEntryForMSIWorkItems(
3434
delete_reg_key->set_best_effort(true);
3535
}
3636

@@ -77,7 +77,7 @@ index e92470fe15e08..20d6c9369eeb4 100644
7777
// Adds Chrome specific install work items to |install_list|.
7878
void AddChromeWorkItems(const InstallParams& install_params,
7979
WorkItemList* install_list) {
80-
@@ -230,6 +273,11 @@ void AddChromeWorkItems(const InstallParams& install_params,
80+
@@ -209,6 +252,11 @@ void AddChromeWorkItems(const InstallParams& install_params,
8181

8282
const base::FilePath& target_path = installer_state.target_path();
8383

@@ -87,8 +87,8 @@ index e92470fe15e08..20d6c9369eeb4 100644
8787
+ ClosePreviousChromeProcess(target_path);
8888
+
8989
if (current_version.IsValid()) {
90+
// TODO(crbug.com/441478433): Delete this cleanup some time in 2027.
9091
// Delete the archive from an existing install to save some disk space.
91-
base::FilePath old_installer_dir(
9292
--
93-
2.47.0.windows.2
93+
2.50.1.windows.1
9494

patch/0002-Patch-updater-to-work-with-unsigned-and-unbranded-bu.patch

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 14a121509a65c4faa707fd7d705d4119e151dda6 Mon Sep 17 00:00:00 2001
1+
From b6d0c246ec55919274446bcb7701a17eb5c4af7c Mon Sep 17 00:00:00 2001
22
From: Hibiki Tachibana <57486057+Hibbiki@users.noreply.github.com>
33
Date: Wed, 12 Jun 2024 02:14:41 +0200
44
Subject: [PATCH 2/4] Patch updater to work with unsigned and unbranded builds
@@ -26,7 +26,7 @@ index 7de32cf745755..9bbb8ecadd23a 100644
2626
.base_app_id = L"Chromium", // A distinct base_app_id.
2727
.browser_prog_id_prefix = L"ChromiumHTM", // Browser ProgID prefix.
2828
diff --git a/chrome/updater/BUILD.gn b/chrome/updater/BUILD.gn
29-
index 65e5c411f6038..a91f6e912b8a9 100644
29+
index 58400305cb10a..b2fa2db65c701 100644
3030
--- a/chrome/updater/BUILD.gn
3131
+++ b/chrome/updater/BUILD.gn
3232
@@ -358,6 +358,7 @@ if (is_win || is_mac || is_linux) {
@@ -38,7 +38,7 @@ index 65e5c411f6038..a91f6e912b8a9 100644
3838
"//chrome/updater/app/server/win:updater_idl_system",
3939
"//chrome/updater/app/server/win:updater_idl_user",
4040
diff --git a/chrome/updater/win/installer/installer.cc b/chrome/updater/win/installer/installer.cc
41-
index f5b930591ebbc..878caf2a9d725 100644
41+
index 2444634092235..71f13cfa910f5 100644
4242
--- a/chrome/updater/win/installer/installer.cc
4343
+++ b/chrome/updater/win/installer/installer.cc
4444
@@ -11,6 +11,11 @@
@@ -53,23 +53,23 @@ index f5b930591ebbc..878caf2a9d725 100644
5353
#include "chrome/updater/win/installer/installer.h"
5454

5555
#include <shellapi.h>
56-
@@ -30,6 +35,7 @@
56+
@@ -31,6 +36,7 @@
5757
#include "base/memory/ref_counted.h"
5858
#include "base/path_service.h"
5959
#include "base/strings/strcat.h"
6060
+#include "base/strings/stringprintf.h"
6161
#include "base/strings/utf_string_conversions.h"
6262
#include "base/synchronization/waitable_event.h"
6363
#include "base/task/thread_pool.h"
64-
@@ -44,6 +50,7 @@
64+
@@ -45,6 +51,7 @@
6565
#include "base/win/scoped_localalloc.h"
6666
#include "base/win/windows_version.h"
6767
#include "chrome/installer/util/lzma_util.h"
6868
+#include "chrome/install_static/install_modes.h"
6969
#include "chrome/updater/branded_constants.h"
7070
#include "chrome/updater/constants.h"
7171
#include "chrome/updater/ping_configurator.h"
72-
@@ -74,11 +81,19 @@ namespace {
72+
@@ -75,11 +82,19 @@ namespace {
7373
// program file image used to create this process. The implementation of this
7474
// function only handles UTF8 tags.
7575
std::string ExtractTag() {
@@ -125,5 +125,5 @@ index d22b29c4875fc..6f7a0bbfc616e 100755
125125
def _generate_target_manifest(self, appid, installer_path, manifest_path,
126126
manifest_dict_replacements):
127127
--
128-
2.47.0.windows.2
128+
2.50.1.windows.1
129129

patch/0003-Ensure-bogus-ElevationService-is-not-being-created-d.patch

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 2f9be0801fbebd9e3ba3e55405fcd246b68a94f0 Mon Sep 17 00:00:00 2001
1+
From 5221611b74b49a818db69aa6389c83eabb9860c0 Mon Sep 17 00:00:00 2001
22
From: Hibiki Tachibana <57486057+Hibbiki@users.noreply.github.com>
33
Date: Sat, 22 Jul 2023 01:33:35 +0200
44
Subject: [PATCH 3/4] Ensure bogus ElevationService is not being created during
@@ -10,26 +10,26 @@ Signed-off-by: Hibiki Tachibana <57486057+Hibbiki@users.noreply.github.com>
1010
1 file changed, 6 insertions(+), 2 deletions(-)
1111

1212
diff --git a/chrome/installer/setup/install_worker.cc b/chrome/installer/setup/install_worker.cc
13-
index 20d6c9369eeb4..a05913e2a4b60 100644
13+
index 40f877019cd32..52b872a32ee18 100644
1414
--- a/chrome/installer/setup/install_worker.cc
1515
+++ b/chrome/installer/setup/install_worker.cc
16-
@@ -345,6 +345,7 @@ void AddChromeWorkItems(const InstallParams& install_params,
16+
@@ -320,6 +320,7 @@ void AddChromeWorkItems(const InstallParams& install_params,
1717
->set_best_effort(true);
1818
}
1919

2020
+#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
2121
// Adds work items to register the Elevation Service with Windows. Only for
2222
// system level installs.
2323
void AddElevationServiceWorkItems(const base::FilePath& elevation_service_path,
24-
@@ -430,7 +431,6 @@ void AddTracingServiceWorkItems(const InstallationState& original_state,
24+
@@ -405,7 +406,6 @@ void AddTracingServiceWorkItems(const InstallationState& original_state,
2525
}
2626
}
2727

2828
-#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
2929
// Adds work items to add the "store-dmtoken" command to Chrome's version key.
3030
// This method is a no-op if this is anything other than system-level Chrome.
3131
// The command is used when enrolling Chrome browser instances into enterprise
32-
@@ -1054,7 +1054,7 @@ void AddInstallWorkItems(const InstallParams& install_params,
32+
@@ -1029,7 +1029,7 @@ void AddInstallWorkItems(const InstallParams& install_params,
3333
install_list);
3434
AddPlatformExperienceHelperWorkItems(installer_state, new_version,
3535
install_list);
@@ -38,7 +38,7 @@ index 20d6c9369eeb4..a05913e2a4b60 100644
3838
AddFirewallRulesWorkItems(installer_state, !current_version.IsValid(),
3939
install_list);
4040

41-
@@ -1064,10 +1064,12 @@ void AddInstallWorkItems(const InstallParams& install_params,
41+
@@ -1039,10 +1039,12 @@ void AddInstallWorkItems(const InstallParams& install_params,
4242
installer_state.root_key(),
4343
GetNotificationHelperPath(target_path, new_version), install_list);
4444

@@ -51,7 +51,7 @@ index 20d6c9369eeb4..a05913e2a4b60 100644
5151

5252
AddUpdateDowngradeVersionItem(installer_state.root_key(), current_version,
5353
new_version, install_list);
54-
@@ -1347,10 +1349,12 @@ void AddFinalizeUpdateWorkItems(const InstallationState& original_state,
54+
@@ -1322,10 +1324,12 @@ void AddFinalizeUpdateWorkItems(const InstallationState& original_state,
5555
AddWerHelperRegistration(installer_state.root_key(),
5656
GetWerHelperPath(target_path, new_version), list);
5757

@@ -65,5 +65,5 @@ index 20d6c9369eeb4..a05913e2a4b60 100644
6565
const std::wstring client_state_key = install_static::GetClientStateKeyPath();
6666

6767
--
68-
2.47.0.windows.2
68+
2.50.1.windows.1
6969

patch/0004-Fix-Grit-branding-args-for-policy_templates.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 833c2c739133f87164ac852f76c337b7e594598f Mon Sep 17 00:00:00 2001
1+
From 09ce76599632777f51894548f69000c29f2d975c Mon Sep 17 00:00:00 2001
22
From: Hibiki Tachibana <57486057+Hibbiki@users.noreply.github.com>
33
Date: Thu, 3 Aug 2023 11:25:53 +0200
44
Subject: [PATCH 4/4] Fix Grit branding args for policy_templates
@@ -115,5 +115,5 @@ index 283ea725c5a18..f50b5ce395308 100755
115115
config['version'] = defines['version']
116116
if 'major_version' in defines:
117117
--
118-
2.47.0.windows.2
118+
2.50.1.windows.1
119119

0 commit comments

Comments
 (0)