Skip to content

Commit e1a4e8a

Browse files
committed
helium/windows: refresh updater patches for m149
1 parent cc658b2 commit e1a4e8a

6 files changed

Lines changed: 13 additions & 15 deletions

File tree

patches/helium/windows/change-branding.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
CHROME_PATCH_FILE_SUFFIX = "_patch" # prefixed by options.output_name
136136

137137
# compressed full archive suffix, will be prefixed by options.output_name
138-
@@ -724,7 +718,7 @@ def _ParseOptions():
138+
@@ -724,7 +724,7 @@ def _ParseOptions():
139139
'{BSDIFF|ZUCCHINI}.')
140140
parser.add_option('-n',
141141
'--output_name',

patches/helium/windows/helium-versioning.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
</assembly>
6969
--- a/chrome/browser/chrome_content_browser_client.cc
7070
+++ b/chrome/browser/chrome_content_browser_client.cc
71-
@@ -1301,7 +1301,7 @@ base::FilePath GetModulePath(std::wstrin
71+
@@ -1292,7 +1292,7 @@ base::FilePath GetModulePath(std::wstrin
7272
// executable's directory and return the path if it can be read. This is the
7373
// expected location of modules for proper installs.
7474
const base::FilePath module_path =
@@ -160,7 +160,7 @@
160160
#include "base/win/registry.h"
161161
#include "base/win/security_util.h"
162162
#include "base/win/sid.h"
163-
@@ -579,10 +580,11 @@ void AddUninstallShortcutWorkItems(const
163+
@@ -583,10 +584,11 @@ void AddUninstallShortcutWorkItems(const
164164
InstallUtil::GetPublisherName(), true);
165165
install_list->AddSetRegValueWorkItem(
166166
reg_root, uninstall_reg, KEY_WOW64_32KEY, L"Version",
@@ -176,7 +176,7 @@
176176
install_list->AddSetRegValueWorkItem(reg_root, uninstall_reg,
177177
--- a/chrome/installer/setup/setup_main.cc
178178
+++ b/chrome/installer/setup/setup_main.cc
179-
@@ -478,7 +478,7 @@ installer::InstallStatus RenameChromeExe
179+
@@ -543,7 +543,7 @@ installer::InstallStatus RenameChromeExe
180180
WorkItem::MoveTreeOptions{});
181181

182182
AddFinalizeUpdateWorkItems(original_state,

patches/helium/windows/setup-chromium-version-migration.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<< current_version;
2525
--- a/chrome/installer/setup/setup_main.cc
2626
+++ b/chrome/installer/setup/setup_main.cc
27-
@@ -1235,7 +1235,17 @@ InstallStatus InstallProductsHelper(Inst
27+
@@ -1308,7 +1308,17 @@ InstallStatus InstallProductsHelper(Inst
2828
if (!IsDowngradeAllowed(prefs)) {
2929
const ProductState* product_state =
3030
original_state.GetProductState(system_install);

patches/helium/windows/updater/build-wiring.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
--- a/chrome/browser/BUILD.gn
22
+++ b/chrome/browser/BUILD.gn
3-
@@ -57,6 +57,7 @@ if (is_android) {
3+
@@ -54,6 +54,7 @@ if (is_android) {
44

55
if (is_win) {
66
import("//build/config/win/manifest.gni")
77
+ import("//chrome/updater/winsparkle.gni")
88
}
99

1010
assert(!is_fuchsia, "Fuchsia shouldn't use anything in //chrome")
11-
@@ -103,6 +104,13 @@ buildflag_header("buildflags") {
11+
@@ -100,6 +101,13 @@ buildflag_header("buildflags") {
1212

1313
if (is_win) {
1414
flags += [ "ENABLE_SEGMENT_HEAP=$enable_segment_heap" ]
@@ -22,7 +22,7 @@
2222
}
2323

2424
# Android and ChromeOS don't support multiple browser processes, so they don't
25-
@@ -5834,6 +5842,17 @@ static_library("browser") {
25+
@@ -4069,6 +4077,17 @@ static_library("browser") {
2626
}
2727

2828
if (is_win) {
@@ -72,7 +72,7 @@
7272
generate_allowlist_from_histograms_file("webui_name_variants") {
7373
namespace = "views_metrics"
7474
input_xml_file = "//tools/metrics/histograms/metadata/page/histograms.xml"
75-
@@ -3527,7 +3531,7 @@ static_library("ui") {
75+
@@ -3619,7 +3623,7 @@ static_library("ui") {
7676
"//chrome/browser/win/installer_downloader:prefs",
7777
"//chrome/updater/app/server/win:updater_legacy_idl",
7878
]

patches/helium/windows/updater/helper.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/chrome/browser/BUILD.gn
22
+++ b/chrome/browser/BUILD.gn
3-
@@ -5851,6 +5851,7 @@ static_library("browser") {
3+
@@ -4086,6 +4086,7 @@ static_library("browser") {
44
"//components/helium_services",
55
"//third_party/winsparkle",
66
]

patches/helium/windows/updater/register.patch

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,11 @@
4343
#if BUILDFLAG(ENABLE_SESSION_SERVICE)
4444
#include "chrome/browser/sessions/session_data_service.h"
4545
#include "chrome/browser/sessions/session_data_service_factory.h"
46-
@@ -109,9 +114,21 @@ void AttemptRestartInternal(IgnoreUnload
47-
content::GetUIThreadTaskRunner({})->PostTask(
46+
@@ -113,7 +118,21 @@ void AttemptRestartInternal(IgnoreUnload
4847
FROM_HERE, base::BindOnce(&ExitIgnoreUnloadHandlers));
4948
#else // !BUILDFLAG(IS_CHROMEOS).
50-
-
49+
// Set the flag to restore state after the restart.
5150
- pref_service->SetBoolean(prefs::kRestartLastSessionOnShutdown, true);
52-
-
53-
+ // Set the flag to restore state after the restart.
5451
+ bool self_relaunch = true;
5552
+#if BUILDFLAG(ENABLE_WINSPARKLE)
5653
+ // If a system-level update is downloaded and waiting, we raise a
@@ -65,6 +62,7 @@
6562
+ if (self_relaunch) {
6663
+ pref_service->SetBoolean(prefs::kRestartLastSessionOnShutdown, true);
6764
+ }
65+
+
6866
if (ignore_unload_handlers) {
6967
ExitIgnoreUnloadHandlers();
7068
} else {

0 commit comments

Comments
 (0)