Skip to content

Commit a8c7062

Browse files
authored
Merge pull request #427 from teeminus/update
2 parents 257e224 + 98f1baa commit a8c7062

13 files changed

+424
-569
lines changed

build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def main():
199199

200200
# Unpack downloads
201201
get_logger().info('Unpacking downloads...')
202-
downloads.unpack_downloads(download_info_win, downloads_cache, None, source_tree, False, None, extractors)
202+
downloads.unpack_downloads(download_info_win, downloads_cache, None, source_tree, extractors)
203203

204204
# Apply patches
205205
# First, ungoogled-chromium-patches
@@ -257,7 +257,7 @@ def main():
257257

258258
# Generate version file
259259
with open(RUST_FLAG_FILE, 'w') as f:
260-
f.write('rustc 1.85.0-nightly (9e136a30a 2024-12-19)')
260+
f.write('rustc 1.86.0-nightly (243d2ca4d 2025-01-06)')
261261
f.write('\n')
262262

263263
if not args.ci or not (source_tree / 'out/Default').exists():

domain_substitution.list

Lines changed: 255 additions & 476 deletions
Large diffs are not rendered by default.

downloads.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ strip_leading_dirs=DirectX-Headers-%(version)s
113113

114114
# Rust
115115
[rust-x64]
116-
version = 2024-12-20
116+
version = 2025-01-07
117117
url = https://static.rust-lang.org/dist/%(version)s/rust-nightly-x86_64-pc-windows-msvc.tar.gz
118118
download_filename = rust-nightly-%(version)s-x86_64-pc-windows-msvc.tar.gz
119119
output_path = third_party/rust-toolchain-x64
120120
strip_leading_dirs=rust-nightly-x86_64-pc-windows-msvc
121121
[rust-x86]
122-
version = 2024-12-20
122+
version = 2025-01-07
123123
url = https://static.rust-lang.org/dist/%(version)s/rust-nightly-i686-pc-windows-msvc.tar.gz
124124
download_filename = rust-nightly-%(version)s-i686-pc-windows-msvc.tar.gz
125125
output_path = third_party/rust-toolchain-x86

patches/ungoogled-chromium/windows/windows-disable-clang-version-check.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/build/config/compiler/BUILD.gn
22
+++ b/build/config/compiler/BUILD.gn
3-
@@ -1647,8 +1647,7 @@ config("compiler_deterministic") {
3+
@@ -1641,8 +1641,7 @@ config("compiler_deterministic") {
44
}
55

66
config("clang_revision") {

patches/ungoogled-chromium/windows/windows-disable-encryption.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#include "base/containers/span.h"
4444
#include "base/feature_list.h"
4545
#include "base/logging.h"
46-
@@ -49,6 +50,10 @@ constexpr char kDPAPIKeyPrefix[] = "DPAP
46+
@@ -50,6 +51,10 @@ constexpr char kDPAPIKeyPrefix[] = "DPAP
4747

4848
bool EncryptStringWithDPAPI(const std::string& plaintext,
4949
std::string* ciphertext) {
@@ -54,7 +54,7 @@
5454
DATA_BLOB input;
5555
input.pbData =
5656
const_cast<BYTE*>(reinterpret_cast<const BYTE*>(plaintext.data()));
57-
@@ -83,6 +88,11 @@ bool EncryptStringWithDPAPI(const std::s
57+
@@ -88,6 +93,11 @@ bool EncryptStringWithDPAPI(const std::s
5858

5959
bool DecryptStringWithDPAPI(const std::string& ciphertext,
6060
std::string* plaintext) {

patches/ungoogled-chromium/windows/windows-disable-event-log.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
--- a/chrome/common/BUILD.gn
55
+++ b/chrome/common/BUILD.gn
6-
@@ -131,7 +131,6 @@ source_set("request_code_constants") {
6+
@@ -128,7 +128,6 @@ source_set("request_code_constants") {
77
static_library("common_lib") {
88
visibility = [
99
":*",
1010
- "//chrome/common/win:eventlog_messages",
1111
]
1212
sources = [
1313
"all_messages.h",
14-
@@ -379,7 +378,6 @@ static_library("common_lib") {
14+
@@ -375,7 +374,6 @@ static_library("common_lib") {
1515
"conflicts/remote_module_watcher_win.cc",
1616
"conflicts/remote_module_watcher_win.h",
1717
]
@@ -77,7 +77,7 @@
7777
base::expected<base::HeapArray<FactoryAndClsid>, HRESULT>
7878
--- a/chrome/windows_services/elevated_tracing_service/BUILD.gn
7979
+++ b/chrome/windows_services/elevated_tracing_service/BUILD.gn
80-
@@ -77,7 +77,6 @@ source_set("service_lib") {
80+
@@ -94,7 +94,6 @@ source_set("service_lib") {
8181
]
8282
deps = [
8383
":lib",

patches/ungoogled-chromium/windows/windows-disable-reorder-fix-linking.patch

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# This does not currently work. See crbug.com/1311822.
3333
# This target exists above chrome and it's main components in the dependency
3434
# tree as a central place to put assert_no_deps annotations. Since this depends
35-
@@ -140,10 +117,6 @@ if (!is_android && !is_mac) {
35+
@@ -140,17 +117,9 @@ if (!is_android && !is_mac) {
3636
# Windows-only deps are OK because chrome_initial uses initialexe/chrome as
3737
# the output name for that platform.
3838
# See crbug.com/1146571.
@@ -42,23 +42,18 @@
4242
- }
4343
}
4444

45-
template("_chrome_exe") {
46-
@@ -155,11 +128,7 @@ if (!is_android && !is_mac) {
47-
target(_type, target_name) {
48-
configs -= [ "//build/config/compiler:thinlto_optimize_default" ]
49-
configs += [ "//build/config/compiler:thinlto_optimize_max" ]
50-
- if (is_win) {
51-
- output_name = "initialexe/chrome"
52-
- } else {
53-
- output_name = "chrome"
54-
- }
55-
+ output_name = "chrome"
45+
- if (is_win) {
46+
- _chrome_output_name = "initialexe/chrome"
47+
- } else {
48+
- _chrome_output_name = "chrome"
49+
- }
50+
+ _chrome_output_name = "chrome"
5651

57-
# Because the sources list varies so significantly per-platform, generally
58-
# each platform lists its own files rather than relying on filtering or
52+
executable("chrome_initial") {
53+
configs -= [ "//build/config/compiler:thinlto_optimize_default" ]
5954
--- a/chrome/test/chromedriver/BUILD.gn
6055
+++ b/chrome/test/chromedriver/BUILD.gn
61-
@@ -482,11 +482,6 @@ python_library("chromedriver_py_tests")
56+
@@ -502,11 +502,6 @@ python_library("chromedriver_py_tests")
6257
if (is_component_build && is_mac) {
6358
data_deps += [ "//chrome:chrome_framework" ]
6459
}
@@ -72,7 +67,7 @@
7267
python_library("chromedriver_py_tests_headless_shell") {
7368
--- a/tools/perf/chrome_telemetry_build/BUILD.gn
7469
+++ b/tools/perf/chrome_telemetry_build/BUILD.gn
75-
@@ -37,10 +37,6 @@ group("telemetry_chrome_test") {
70+
@@ -57,10 +57,6 @@ group("telemetry_chrome_test") {
7671
data_deps += [ "//chrome" ]
7772
}
7873

patches/ungoogled-chromium/windows/windows-disable-rlz.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/chrome/installer/setup/BUILD.gn
22
+++ b/chrome/installer/setup/BUILD.gn
3-
@@ -41,7 +41,6 @@ if (is_win) {
3+
@@ -42,7 +42,6 @@ if (is_win) {
44
"//components/crash/core/app:crash_export_thunks",
55
"//components/crash/core/app:run_as_crashpad_handler",
66
"//content/public/common:static_switches",
@@ -10,16 +10,16 @@
1010

1111
--- a/chrome/installer/setup/uninstall.cc
1212
+++ b/chrome/installer/setup/uninstall.cc
13-
@@ -68,8 +68,6 @@
14-
#include "chrome/installer/util/util_constants.h"
13+
@@ -69,8 +69,6 @@
1514
#include "chrome/installer/util/work_item.h"
15+
#include "chrome/windows_services/elevated_tracing_service/service_integration.h"
1616
#include "content/public/common/result_codes.h"
1717
-#include "rlz/lib/rlz_lib_clear.h"
1818
-#include "rlz/lib/supplementary_branding.h"
1919

2020
using base::win::RegKey;
2121

22-
@@ -112,22 +110,6 @@ void ProcessChromeWorkItems(const Instal
22+
@@ -113,22 +111,6 @@ void ProcessChromeWorkItems(const Instal
2323
work_item_list->Do();
2424
}
2525

@@ -42,7 +42,7 @@
4242
// Removes all files from the installer directory. Returns false in case of an
4343
// error.
4444
bool RemoveInstallerFiles(const base::FilePath& installer_directory) {
45-
@@ -893,11 +875,6 @@ InstallStatus UninstallProduct(const Mod
45+
@@ -906,11 +888,6 @@ InstallStatus UninstallProduct(const Mod
4646
}
4747
}
4848

patches/ungoogled-chromium/windows/windows-fix-building-without-safebrowsing.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
--- a/chrome/app/BUILD.gn
55
+++ b/chrome/app/BUILD.gn
6-
@@ -42,10 +42,7 @@ source_set("chrome_dll_resources") {
6+
@@ -41,10 +41,7 @@ source_set("chrome_dll_resources") {
77
deps = [ ":command_ids" ]
88

99
if (is_win) {
@@ -17,15 +17,15 @@
1717
"//build:branding_buildflags",
1818
--- a/chrome/browser/chrome_content_browser_client.cc
1919
+++ b/chrome/browser/chrome_content_browser_client.cc
20-
@@ -4949,7 +4949,6 @@ std::wstring ChromeContentBrowserClient:
20+
@@ -4954,7 +4954,6 @@ std::wstring ChromeContentBrowserClient:
2121
#endif
2222
case sandbox::mojom::Sandbox::kPrintCompositor:
2323
case sandbox::mojom::Sandbox::kAudio:
2424
- case sandbox::mojom::Sandbox::kScreenAI:
2525
case sandbox::mojom::Sandbox::kSpeechRecognition:
2626
case sandbox::mojom::Sandbox::kPdfConversion:
2727
case sandbox::mojom::Sandbox::kService:
28-
@@ -5045,7 +5044,6 @@ bool ChromeContentBrowserClient::PreSpaw
28+
@@ -5050,7 +5049,6 @@ bool ChromeContentBrowserClient::PreSpaw
2929
case sandbox::mojom::Sandbox::kPrintBackend:
3030
#endif
3131
case sandbox::mojom::Sandbox::kPrintCompositor:
@@ -35,7 +35,7 @@
3535
case sandbox::mojom::Sandbox::kSpeechRecognition:
3636
--- a/chrome/browser/safe_browsing/BUILD.gn
3737
+++ b/chrome/browser/safe_browsing/BUILD.gn
38-
@@ -7,6 +7,7 @@ import("//components/safe_browsing/build
38+
@@ -8,6 +8,7 @@ import("//components/safe_browsing/build
3939
import("//extensions/buildflags/buildflags.gni")
4040

4141
static_library("safe_browsing") {

patches/ungoogled-chromium/windows/windows-fix-command-ids.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/chrome/app/chrome_command_ids.h
22
+++ b/chrome/app/chrome_command_ids.h
3-
@@ -64,15 +64,15 @@
3+
@@ -68,15 +68,15 @@
44
#define IDC_MAXIMIZE_WINDOW 34047
55
#define IDC_ALL_WINDOWS_FRONT 34048
66
#define IDC_NAME_WINDOW 34049
@@ -19,7 +19,7 @@
1919
#define IDC_RESTORE_WINDOW 34052
2020
#endif
2121

22-
@@ -85,7 +85,7 @@
22+
@@ -89,7 +89,7 @@
2323
#define IDC_WEB_APP_SETTINGS 34062
2424
#define IDC_WEB_APP_MENU_APP_INFO 34063
2525

@@ -28,7 +28,7 @@
2828
// Move window to other user commands
2929
#define IDC_VISIT_DESKTOP_OF_LRU_USER_2 34080
3030
#define IDC_VISIT_DESKTOP_OF_LRU_USER_3 34081
31-
@@ -473,7 +473,7 @@
31+
@@ -482,7 +482,7 @@
3232
#define IDC_MEDIA_ROUTER_TOGGLE_MEDIA_REMOTING 51208
3333

3434
// Context menu items for media toolbar button
@@ -37,7 +37,7 @@
3737
#define IDC_MEDIA_TOOLBAR_CONTEXT_REPORT_CAST_ISSUE 51209
3838
#endif
3939
#define IDC_MEDIA_TOOLBAR_CONTEXT_SHOW_OTHER_SESSIONS 51210
40-
@@ -510,7 +510,7 @@
40+
@@ -519,7 +519,7 @@
4141
#define IDC_CONTENT_CONTEXT_ACCESSIBILITY_LABELS 52411
4242
#define IDC_CONTENT_CONTEXT_ACCESSIBILITY_LABELS_TOGGLE_ONCE 52412
4343

0 commit comments

Comments
 (0)