Files
helium/patches/core/ungoogled-chromium/fix-building-with-prunned-binaries.patch
T

156 lines
6.2 KiB
Diff

# Contains tests and features that are unneeded and would otherwise
# require binaries to be whitelisted in the pruning list
--- a/chrome/BUILD.gn
+++ b/chrome/BUILD.gn
@@ -947,8 +947,6 @@ if (is_win) {
bundle_data("chrome_framework_resources") {
sources = [
- "//ui/gl/resources/angle-metal/gpu_shader_cache.bin",
-
# This image is used to badge the lock icon in the
# authentication dialogs, such as those used for installation
# from disk image and Keystone promotion (if so enabled). It
--- a/chrome/browser/ui/safety_hub/BUILD.gn
+++ b/chrome/browser/ui/safety_hub/BUILD.gn
@@ -37,7 +37,6 @@ source_set("safety_hub") {
"//components/content_settings/core/browser",
"//components/content_settings/core/common",
"//components/keyed_service/core",
- "//components/safe_browsing/content/browser/notification_content_detection",
"//components/safe_browsing/core/browser:safe_browsing_metrics_collector",
"//components/safe_browsing/core/browser/db:database_manager",
"//components/safety_check:features",
--- a/chrome/test/BUILD.gn
+++ b/chrome/test/BUILD.gn
@@ -6471,7 +6471,6 @@ template("performance_test_suite_templat
data_deps += [
"//chrome/test:load_library_perf_tests",
"//components/tracing:tracing_perftests",
- "//components/variations/test_data/cipd:single_group_per_study_prefer_existing_behavior_seed",
"//testing:run_perf_test",
"//ui/views:views_perftests",
]
@@ -7465,9 +7464,6 @@ test("unit_tests") {
"//components/safe_browsing/content/browser",
"//components/safe_browsing/content/browser:client_side_detection_images_cache",
"//components/safe_browsing/content/browser:credit_card_form_event",
- "//components/safe_browsing/content/browser/notification_content_detection",
- "//components/safe_browsing/content/browser/notification_content_detection:notifications_global_cache_list",
- "//components/safe_browsing/content/browser/notification_content_detection:test_utils",
"//components/safe_browsing/content/browser/password_protection",
"//components/safe_browsing/content/browser/password_protection:mock_password_protection",
"//components/safe_browsing/content/browser/web_ui",
--- a/chrome/test/chromedriver/BUILD.gn
+++ b/chrome/test/chromedriver/BUILD.gn
@@ -416,7 +416,7 @@ source_set("lib") {
configs += [ "//build/config/compiler:no_exit_time_destructors" ]
}
-if (is_linux) {
+if (false) {
# Linux
executable("chromedriver_server.unstripped") {
testonly = true
--- a/chrome/test/variations/BUILD.gn
+++ b/chrome/test/variations/BUILD.gn
@@ -18,7 +18,6 @@ python_library("test_utils") {
data = [ "//chrome/test/variations/test_utils/" ]
- data_deps = [ "//third_party/catapult/third_party/gsutil" ]
}
python_library("fixtures") {
--- a/components/omnibox/browser/autocomplete_classifier.cc
+++ b/components/omnibox/browser/autocomplete_classifier.cc
@@ -139,8 +139,6 @@ void AutocompleteClassifier::Classify(
metrics::OmniboxEventProto::PageClassification page_classification,
AutocompleteMatch* match,
GURL* alternate_nav_url) {
- TRACE_EVENT1("omnibox", "AutocompleteClassifier::Classify", "text",
- base::UTF16ToUTF8(text));
DCHECK(!inside_classify_);
base::AutoReset<bool> reset(&inside_classify_, true);
AutocompleteInput input(text, page_classification, *scheme_classifier_);
--- a/components/update_client/BUILD.gn
+++ b/components/update_client/BUILD.gn
@@ -361,8 +361,6 @@ source_set("unit_tests") {
"//third_party/puffin:libpuffpatch",
"//third_party/re2",
]
-
- data_deps = [ "//components/test/data/update_client/puffin_patch_test:puffin_patch_test_files" ]
}
fuzzer_test("update_client_protocol_serializer_fuzzer") {
--- a/content/shell/BUILD.gn
+++ b/content/shell/BUILD.gn
@@ -849,10 +849,6 @@ if (is_apple) {
deps = [ "//third_party/icu:icudata" ]
}
- if (is_mac) {
- sources += [ "//ui/gl/resources/angle-metal/gpu_shader_cache.bin" ]
- }
-
if (v8_use_external_startup_data) {
public_deps += [ "//v8" ]
if (use_v8_context_snapshot) {
--- a/services/on_device_model/on_device_model.gni
+++ b/services/on_device_model/on_device_model.gni
@@ -14,7 +14,7 @@ declare_args() {
declare_args() {
# The on device model service is only enabled on a subset of platforms.
# Exclude it on other platforms due to binary size.
- use_on_device_model_service = is_win || is_mac || is_linux || is_ios || is_cbx
+ use_on_device_model_service = false
}
declare_args() {
--- a/third_party/devtools-frontend/src/front_end/BUILD.gn
+++ b/third_party/devtools-frontend/src/front_end/BUILD.gn
@@ -207,7 +207,6 @@ group("unittests") {
"panels/timeline:unittests",
"panels/timeline/components:unittests",
"panels/timeline/components/insights:unittests",
- "panels/timeline/fixtures/traces",
"panels/timeline/overlays:unittests",
"panels/timeline/overlays/components:unittests",
"panels/timeline/track_appenders:unittests",
--- a/third_party/devtools-frontend/src/front_end/models/trace/lantern/core/BUILD.gn
+++ b/third_party/devtools-frontend/src/front_end/models/trace/lantern/core/BUILD.gn
@@ -38,5 +38,4 @@ ts_library("unittests") {
"../testing:bundle",
]
- public_deps = [ "../../../../panels/timeline/fixtures/traces" ]
}
--- a/third_party/devtools-frontend/src/front_end/models/trace/lantern/metrics/BUILD.gn
+++ b/third_party/devtools-frontend/src/front_end/models/trace/lantern/metrics/BUILD.gn
@@ -54,5 +54,4 @@ ts_library("unittests") {
"../testing:bundle",
]
- public_deps = [ "../../../../panels/timeline/fixtures/traces" ]
}
--- a/third_party/devtools-frontend/src/front_end/models/trace/lantern/simulation/BUILD.gn
+++ b/third_party/devtools-frontend/src/front_end/models/trace/lantern/simulation/BUILD.gn
@@ -51,5 +51,4 @@ ts_library("unittests") {
"../testing:bundle",
]
- public_deps = [ "../../../../panels/timeline/fixtures/traces" ]
}
--- a/third_party/puffin/BUILD.gn
+++ b/third_party/puffin/BUILD.gn
@@ -115,7 +115,6 @@ executable("puffin_unittest") {
"src/unittest_common.cc",
"src/utils_unittest.cc",
]
- data_deps = [ "//components/test/data/update_client/puffin_patch_test:puffin_patch_test_files" ]
deps = [
":libpuffdiff",
":libpuffpatch",