Skip to content

Commit

Permalink
Refresh Patches
Browse files Browse the repository at this point in the history
Signed-off-by: Qian Qian "Cubik"‎ <[email protected]>
  • Loading branch information
Cubik65536 committed Feb 9, 2025
1 parent 9cd8d6c commit cf83b3b
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 44 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1648,8 +1648,7 @@ config("compiler_deterministic") {
@@ -1647,8 +1647,7 @@ config("compiler_deterministic") {
}

config("clang_revision") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

--- a/chrome/BUILD.gn
+++ b/chrome/BUILD.gn
@@ -1252,7 +1252,7 @@ if (is_win) {
@@ -1255,7 +1255,7 @@ if (is_win) {

# TOOD(crbug/1163903#c8) - thakis@ look into why profile and coverage
# instrumentation adds these symbols in different orders
Expand Down
2 changes: 1 addition & 1 deletion patches/ungoogled-chromium/macos/fix-build-with-rust.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

--- a/build/config/rust.gni
+++ b/build/config/rust.gni
@@ -59,17 +59,17 @@ declare_args() {
@@ -58,17 +58,17 @@ declare_args() {
# To use a custom toolchain instead, specify an absolute path to the root of
# a Rust sysroot, which will have a 'bin' directory and others. Commonly
# <home dir>/.rustup/toolchains/nightly-<something>-<something>
Expand Down
74 changes: 37 additions & 37 deletions patches/ungoogled-chromium/macos/fix-disabling-safebrowsing.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -1741,10 +1741,6 @@ static_library("browser") {
@@ -1724,10 +1724,6 @@ static_library("browser") {
"//chrome/browser/ui/javascript_dialogs:impl",
"//chrome/browser/storage_access_api",
"//chrome/browser/top_level_storage_access_api:permissions",
Expand All @@ -13,7 +13,7 @@
"//chrome/browser/ip_protection",

# TODO(crbug.com/40110173): Eliminate usages of browser.h from Media Router.
@@ -1911,7 +1907,6 @@ static_library("browser") {
@@ -1887,7 +1883,6 @@ static_library("browser") {
"//chrome/browser/reading_list",
"//chrome/browser/resource_coordinator:tab_manager_features",
"//chrome/browser/resources/accessibility:resources",
Expand All @@ -23,36 +23,36 @@
"//chrome/browser/safe_browsing:verdict_cache_manager_factory",
--- a/chrome/browser/extensions/BUILD.gn
+++ b/chrome/browser/extensions/BUILD.gn
@@ -660,9 +660,6 @@ source_set("extensions") {
# TODO(crbug.com/346472679): Remove this circular dependency.
"//chrome/browser/web_applications/extensions",
@@ -670,9 +670,6 @@ source_set("extensions") {
# TODO(crbug.com/346472679): Remove this circular dependency.
"//chrome/browser/web_applications/extensions",

- # TODO(crbug.com/41437292): Remove this circular dependency.
- "//chrome/browser/safe_browsing",
- # TODO(crbug.com/41437292): Remove this circular dependency.
- "//chrome/browser/safe_browsing",
-
# TODO(crbug.com/343037853): Remove this circular dependency.
"//chrome/browser/themes",
# TODO(crbug.com/343037853): Remove this circular dependency.
"//chrome/browser/themes",

@@ -700,8 +697,6 @@ source_set("extensions") {
"//chrome/common",
"//chrome/common/extensions/api",
"//components/omnibox/browser",
- "//components/safe_browsing/core/browser/db:util",
- "//components/safe_browsing/core/common/proto:csd_proto",
"//components/safe_browsing/core/common/proto:realtimeapi_proto",
"//components/signin/core/browser",
"//components/translate/content/browser",
@@ -776,7 +771,6 @@ source_set("extensions") {
"//chrome/browser/profiles",
"//chrome/browser/profiles:profile",
"//chrome/browser/resource_coordinator:mojo_bindings",
- "//chrome/browser/safe_browsing",
"//chrome/browser/safe_browsing:metrics_collector",
"//chrome/browser/ui/safety_hub",
"//chrome/browser/ui/tabs:tab_enums",
@@ -710,8 +707,6 @@ source_set("extensions") {
"//chrome/common",
"//chrome/common/extensions/api",
"//components/omnibox/browser",
- "//components/safe_browsing/core/browser/db:util",
- "//components/safe_browsing/core/common/proto:csd_proto",
"//components/safe_browsing/core/common/proto:realtimeapi_proto",
"//components/signin/core/browser",
"//components/translate/content/browser",
@@ -785,7 +780,6 @@ source_set("extensions") {
"//chrome/browser/profiles",
"//chrome/browser/profiles:profile",
"//chrome/browser/resource_coordinator:mojo_bindings",
- "//chrome/browser/safe_browsing",
"//chrome/browser/safe_browsing:metrics_collector",
"//chrome/browser/ui/safety_hub",
"//chrome/browser/ui/tabs:tab_enums",
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -567,17 +567,8 @@ static_library("ui") {
@@ -575,17 +575,8 @@ static_library("ui") {
"//components/reading_list/features:flags",
"//components/renderer_context_menu",
"//components/resources",
Expand All @@ -70,7 +70,7 @@
"//components/schema_org/common:improved_mojom",
"//components/search",
"//components/search_engines",
@@ -5661,7 +5652,6 @@ static_library("ui_public_dependencies")
@@ -5634,7 +5625,6 @@ static_library("ui_public_dependencies")
"//components/dom_distiller/core",
"//components/enterprise/buildflags",
"//components/paint_preview/buildflags",
Expand Down Expand Up @@ -111,17 +111,17 @@
? IDS_PROMPT_UNCOMMON_DOWNLOAD_CONTENT_IN_ADVANCED_PROTECTION
--- a/chrome/browser/ui/webui/downloads/downloads_ui.cc
+++ b/chrome/browser/ui/webui/downloads/downloads_ui.cc
@@ -46,6 +46,7 @@
@@ -40,6 +40,7 @@
#include "components/history/core/common/pref_names.h"
#include "components/prefs/pref_service.h"
#include "components/profile_metrics/browser_profile_type.h"
+#include "components/safe_browsing/buildflags.h"
#include "components/safe_browsing/core/common/features.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/download_manager.h"
@@ -75,10 +76,12 @@ content::WebUIDataSource* CreateAndAddDo
source, base::make_span(kDownloadsResources, kDownloadsResourcesSize),
IDR_DOWNLOADS_DOWNLOADS_HTML);
@@ -69,10 +70,12 @@ content::WebUIDataSource* CreateAndAddDo
webui::SetupWebUIDataSource(source, kDownloadsResources,
IDR_DOWNLOADS_DOWNLOADS_HTML);

- bool requests_ap_verdicts =
- safe_browsing::AdvancedProtectionStatusManagerFactory::GetForProfile(
Expand All @@ -136,7 +136,7 @@
static constexpr webui::LocalizedString kStrings[] = {
--- a/chrome/browser/ui/views/download/download_danger_prompt_views.cc
+++ b/chrome/browser/ui/views/download/download_danger_prompt_views.cc
@@ -182,11 +182,15 @@ std::u16string DownloadDangerPromptViews
@@ -180,11 +180,15 @@ std::u16string DownloadDangerPromptViews
filename);
case download::DOWNLOAD_DANGER_TYPE_UNCOMMON_CONTENT:
return l10n_util::GetStringFUTF16(
Expand All @@ -155,7 +155,7 @@
return l10n_util::GetStringFUTF16(IDS_PROMPT_DOWNLOAD_CHANGES_SETTINGS,
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -1015,11 +1015,13 @@ ui::ImageModel DownloadItemView::GetIcon
@@ -1034,11 +1034,13 @@ ui::ImageModel DownloadItemView::GetIcon

switch (danger_type) {
case download::DOWNLOAD_DANGER_TYPE_UNCOMMON_CONTENT:
Expand All @@ -171,7 +171,7 @@
case download::DOWNLOAD_DANGER_TYPE_DANGEROUS_HOST:
--- a/chrome/test/BUILD.gn
+++ b/chrome/test/BUILD.gn
@@ -6914,13 +6914,9 @@ test("unit_tests") {
@@ -7012,13 +7012,9 @@ test("unit_tests") {
"//chrome/browser/renderer_host:history_swiper",
"//chrome/browser/updater:browser_updater_client",
"//chrome/common/notifications",
Expand Down Expand Up @@ -200,7 +200,7 @@
"safe_archive_analyzer.cc",
--- a/chrome/browser/policy/configuration_policy_handler_list_factory.cc
+++ b/chrome/browser/policy/configuration_policy_handler_list_factory.cc
@@ -2254,12 +2254,6 @@ const PolicyToPreferenceMapEntry kSimple
@@ -2264,12 +2264,6 @@ const PolicyToPreferenceMapEntry kSimple
base::Value::Type::BOOLEAN },
#endif

Expand All @@ -215,7 +215,7 @@
lens::prefs::kLensOverlaySettings,
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -8055,30 +8055,6 @@ bool ChromeContentBrowserClient::SetupEm
@@ -7871,30 +7871,6 @@ bool ChromeContentBrowserClient::SetupEm
CHECK(!soda_language_pack_path.empty());
CHECK(compiler->SetParameter(sandbox::policy::kParamSodaLanguagePackPath,
soda_language_pack_path.value()));
Expand Down
4 changes: 2 additions & 2 deletions patches/ungoogled-chromium/macos/fix-runTsc-log-info.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/third_party/devtools-frontend/src/scripts/build/typescript/ts_library.py
+++ b/third_party/devtools-frontend/src/scripts/build/typescript/ts_library.py
@@ -51,7 +51,7 @@ logging.basicConfig(
@@ -54,7 +54,7 @@ logging.basicConfig(

def runTsc(tsconfig_location):
cmd = [NODE_LOCATION, TSC_LOCATION, '-p', tsconfig_location]
Expand All @@ -9,7 +9,7 @@
process = subprocess.Popen(cmd,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
@@ -102,9 +102,9 @@ def runTscRemote(tsconfig_location, all_
@@ -105,9 +105,9 @@ def runTscRemote(tsconfig_location, all_
rewrapper_exec_root), '--', relative_node_location,
relative_tsc_location, '-p', relative_tsconfig_location
],
Expand Down
4 changes: 2 additions & 2 deletions patches/ungoogled-chromium/macos/mark-remap_alloc-used.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
+#endif
#endif // COMPONENT_BUILD

#if !PA_BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC) && BUILDFLAG(IS_WIN) && \
#if !BUILDFLAG(RUST_ALLOCATOR_USES_PARTITION_ALLOC) && BUILDFLAG(IS_WIN) && \
@@ -109,8 +113,13 @@ extern "C" {
// Marked as weak as when Rust drives linking it includes this symbol itself,
// and we don't want a collision due to C++ being in the same link target, where
Expand All @@ -25,4 +25,4 @@
+#endif

REMAP_ALLOC_ATTRIBUTES void* __rust_alloc(size_t size, size_t align) {
#if PA_BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC)
#if BUILDFLAG(RUST_ALLOCATOR_USES_PARTITION_ALLOC)

0 comments on commit cf83b3b

Please sign in to comment.