Description: remove dependencies on third_party catapult Author: Michael Gilbert Forwarded: not-needed Last-Update: 2022-11-26 --- a/src/3rdparty/chromium/BUILD.gn +++ b/src/3rdparty/chromium/BUILD.gn @@ -239,7 +239,6 @@ group("gn_all") { "//media/capture:capture_unittests", "//media/cast:cast_unittests", "//third_party/angle/src/tests:angle_white_box_tests", - "//third_party/catapult/telemetry:bitmaptools($host_toolchain)", ] } else if (is_ios && !use_qt) { deps += [ @@ -354,7 +353,6 @@ group("gn_all") { "//net/android:net_junit_tests", "//services:services_junit_tests", "//testing/android/junit:junit_unit_tests", - "//third_party/catapult/devil", "//third_party/smhasher:murmurhash3", "//tools/android:android_tools", "//tools/android:memconsumer", @@ -959,7 +957,6 @@ if (is_chromeos) { "//third_party/dawn/src/tests:dawn_unittests", # Blocked on https://github.com/catapult-project/catapult/issues/2297 - #"//third_party/catapult/telemetry:bitmaptools", "//tools/perf/clear_system_cache", "//ui/ozone/gl:ozone_gl_unittests", ] @@ -1037,7 +1034,6 @@ if (!is_ios && !use_qt) { data_deps = [ "//chrome:chrome", "//chrome/test/chromedriver", - "//third_party/catapult/third_party/typ", ] if (is_win) { data_deps += [ "//build/win:copy_cdb_to_output" ] @@ -1084,7 +1080,6 @@ if (!is_ios && !use_qt) { "//third_party/blink/public:blink_devtools_inspector_resources", "//third_party/blink/public/mojom:mojom_platform_js_data_deps", "//third_party/blink/renderer/core/html:js_files_for_form_controls_web_tests", - "//third_party/catapult/third_party/typ", "//third_party/mesa_headers", "//tools/imagediff", ] @@ -1152,7 +1147,6 @@ if (!is_ios && !use_qt) { if (is_android) { data += [ - "//third_party/catapult/", "//build/android/", ] } @@ -1259,11 +1253,6 @@ if (!is_ios && !use_qt) { "//third_party/blink/web_tests/StaleTestExpectations", "//third_party/blink/web_tests/TestExpectations", "//third_party/blink/web_tests/VirtualTestSuites", - "//third_party/catapult/common/py_utils/", - "//third_party/catapult/devil/", - "//third_party/catapult/dependency_manager/", - "//third_party/catapult/third_party/zipfile/", - "//third_party/catapult/third_party/typ/", "//third_party/depot_tools/pylint", "//third_party/depot_tools/pylint-1.5", "//third_party/depot_tools/pylint_main.py", --- a/src/3rdparty/chromium/chrome/chrome_paks.gni +++ b/src/3rdparty/chromium/chrome/chrome_paks.gni @@ -94,7 +94,6 @@ template("chrome_extra_paks") { "$root_gen_dir/chrome/common_resources.pak", "$root_gen_dir/components/autofill/core/browser/autofill_address_rewriter_resources.pak", "$root_gen_dir/components/components_resources.pak", - "$root_gen_dir/content/browser/tracing/tracing_resources.pak", "$root_gen_dir/content/content_resources.pak", "$root_gen_dir/mojo/public/js/mojo_bindings_resources.pak", "$root_gen_dir/net/net_resources.pak", @@ -110,7 +109,6 @@ template("chrome_extra_paks") { "//components/autofill/core/browser:autofill_address_rewriter_resources", "//components/resources", "//content:content_resources", - "//content/browser/tracing:resources", "//mojo/public/js:resources", "//net:net_resources", "//skia:skia_resources", --- a/src/3rdparty/chromium/chrome/common/extensions/docs/server2/BUILD.gn +++ b/src/3rdparty/chromium/chrome/common/extensions/docs/server2/BUILD.gn @@ -38,6 +38,4 @@ group("extension_docserver_python_unitte "//tools/json_comment_eater/json_comment_eater.py", "//tools/json_schema_compiler/", ] - - data_deps = [ "//third_party/catapult/third_party/typ" ] } --- a/src/3rdparty/chromium/chrome/test/BUILD.gn +++ b/src/3rdparty/chromium/chrome/test/BUILD.gn @@ -7103,8 +7103,6 @@ if (!is_fuchsia && !is_android) { "//chrome/test/data/password/captured_sites/", "//chrome/test/data/web_page_replay_go_helper_scripts/automation_helper.js", "//components/test/data/autofill/web_page_replay_support_files/", - "//third_party/catapult/telemetry/telemetry/bin/", - "//third_party/catapult/web_page_replay_go/deterministic.js", ] if (is_linux || is_chromeos || is_win) { @@ -7141,7 +7139,6 @@ if (!is_fuchsia && !is_android) { # TODO(uwyiming@chromium.org) create a gn target for Web Page Replay Go (WPR Go) and only WPR Go. # So that test targets requiring WPR Go does not pull down the whole telemetry tool chain. - "//third_party/catapult:telemetry_chrome_test_support", "//third_party/hunspell", "//third_party/icu", "//third_party/libpng", @@ -7171,7 +7168,6 @@ if (!is_fuchsia && !is_android) { deps = [ "//tools/perf/chrome_telemetry_build:telemetry_chrome_test" ] data = [ - "//third_party/catapult/telemetry/telemetry/internal/bin/", "//tools/perf/run_telemetry_tests", # For isolate contract. @@ -7189,7 +7185,6 @@ if (!is_fuchsia && !is_android) { group("telemetry_gpu_unittests") { testonly = true deps = [ - "//third_party/catapult:telemetry_chrome_test_support", "//tools/metrics:metrics_python_tests", ] data = [ @@ -7313,7 +7308,6 @@ if (is_mac || is_win || is_android) { "//testing/scripts", "//testing/test_env.py", "//testing/xvfb.py", - "//third_party/catapult", "//tools", ] } --- a/src/3rdparty/chromium/content/browser/BUILD.gn +++ b/src/3rdparty/chromium/content/browser/BUILD.gn @@ -2169,7 +2169,6 @@ jumbo_static_library("browser") { if (!is_android) { deps += [ "//components/vector_icons", - "//content/browser/tracing:resources", ] } --- a/src/3rdparty/chromium/content/browser/tracing/tracing_ui.cc +++ b/src/3rdparty/chromium/content/browser/tracing/tracing_ui.cc @@ -27,7 +27,6 @@ #include "base/strings/stringprintf.h" #include "base/trace_event/trace_event.h" #include "base/values.h" -#include "content/browser/tracing/grit/tracing_resources.h" #include "content/browser/tracing/tracing_controller_impl.h" #include "content/public/browser/browser_context.h" #include "content/public/browser/browser_thread.h" @@ -242,8 +241,6 @@ TracingUI::TracingUI(WebUI* web_ui) WebUIDataSource* source = WebUIDataSource::Create(kChromeUITracingHost); source->DisableTrustedTypesCSP(); source->UseStringsJs(); - source->SetDefaultResource(IDR_TRACING_HTML); - source->AddResourcePath("tracing.js", IDR_TRACING_JS); source->SetRequestFilter(base::BindRepeating(OnShouldHandleRequest), base::BindRepeating(OnTracingRequest)); WebUIDataSource::Add(browser_context, source); --- a/src/3rdparty/chromium/content/shell/BUILD.gn +++ b/src/3rdparty/chromium/content/shell/BUILD.gn @@ -390,7 +390,6 @@ repack("pak") { sources = [ "$root_gen_dir/content/app/resources/content_resources_100_percent.pak", "$root_gen_dir/content/browser/resources/media/media_internals_resources.pak", - "$root_gen_dir/content/browser/tracing/tracing_resources.pak", "$root_gen_dir/content/browser/webrtc/resources/webrtc_internals_resources.pak", "$root_gen_dir/content/content_resources.pak", "$root_gen_dir/content/dev_ui_content_resources.pak", @@ -413,7 +412,6 @@ repack("pak") { "//content:dev_ui_content_resources", "//content/app/resources", "//content/browser/resources/media:media_internals_resources", - "//content/browser/tracing:resources", "//content/browser/webrtc/resources", "//mojo/public/js:resources", "//net:net_resources", --- a/src/3rdparty/chromium/fuchsia/engine/BUILD.gn +++ b/src/3rdparty/chromium/fuchsia/engine/BUILD.gn @@ -43,7 +43,6 @@ repack("web_engine_pak") { "$root_gen_dir/components/components_resources.pak", "$root_gen_dir/components/strings/components_strings_en-US.pak", "$root_gen_dir/content/app/resources/content_resources_100_percent.pak", - "$root_gen_dir/content/browser/tracing/tracing_resources.pak", "$root_gen_dir/content/content_resources.pak", "$root_gen_dir/content/dev_ui_content_resources.pak", "$root_gen_dir/mojo/public/js/mojo_bindings_resources.pak", @@ -66,7 +65,6 @@ repack("web_engine_pak") { "//content:content_resources", "//content:dev_ui_content_resources", "//content/app/resources", - "//content/browser/tracing:resources", "//gpu/command_buffer/service", "//mojo/public/js:resources", "//net:net_resources", --- a/src/3rdparty/chromium/headless/BUILD.gn +++ b/src/3rdparty/chromium/headless/BUILD.gn @@ -37,7 +37,6 @@ repack("pak") { "$root_gen_dir/components/components_resources.pak", "$root_gen_dir/components/strings/components_strings_en-US.pak", "$root_gen_dir/content/app/resources/content_resources_100_percent.pak", - "$root_gen_dir/content/browser/tracing/tracing_resources.pak", "$root_gen_dir/content/content_resources.pak", "$root_gen_dir/content/dev_ui_content_resources.pak", "$root_gen_dir/headless/headless_lib_resources.pak", @@ -65,7 +64,6 @@ repack("pak") { "//content:content_resources", "//content:dev_ui_content_resources", "//content/app/resources", - "//content/browser/tracing:resources", "//mojo/public/js:resources", "//net:net_resources", "//third_party/blink/public:resources", --- a/src/3rdparty/chromium/mojo/public/tools/BUILD.gn +++ b/src/3rdparty/chromium/mojo/public/tools/BUILD.gn @@ -14,5 +14,4 @@ group("mojo_python_unittests") { "//testing/xvfb.py", ] deps = [ "//mojo/public/tools/mojom/mojom:tests" ] - data_deps = [ "//third_party/catapult/third_party/typ/" ] } --- a/src/3rdparty/chromium/testing/BUILD.gn +++ b/src/3rdparty/chromium/testing/BUILD.gn @@ -27,7 +27,6 @@ group("run_perf_test") { data_deps = [ ":test_scripts_shared", - "//third_party/catapult/tracing:convert_chart_json", ] if (is_android) { --- a/src/3rdparty/chromium/third_party/webrtc/test/BUILD.gn +++ b/src/3rdparty/chromium/third_party/webrtc/test/BUILD.gn @@ -258,10 +258,6 @@ rtc_library("perf_test") { absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] if (rtc_enable_protobuf) { sources += [ "testsupport/perf_test_histogram_writer.cc" ] - deps += [ - "//third_party/catapult/tracing/tracing:histogram", - "//third_party/catapult/tracing/tracing:reserved_infos", - ] } else { sources += [ "testsupport/perf_test_histogram_writer_no_protobuf.cc" ] } @@ -566,7 +562,6 @@ if (rtc_include_tests) { if (rtc_enable_protobuf) { sources += [ "testsupport/perf_test_histogram_writer_unittest.cc" ] - deps += [ "//third_party/catapult/tracing/tracing:histogram" ] } data = test_support_unittests_resources --- a/src/3rdparty/chromium/tools/binary_size/BUILD.gn +++ b/src/3rdparty/chromium/tools/binary_size/BUILD.gn @@ -18,7 +18,6 @@ python_library("binary_size_trybot_py") python_library("sizes_py") { testonly = true pydeps_file = "sizes.pydeps" - data_deps = [ "//third_party/catapult/tracing:convert_chart_json" ] } if (is_linux || is_chromeos) { --- a/src/3rdparty/chromium/tools/grit/BUILD.gn +++ b/src/3rdparty/chromium/tools/grit/BUILD.gn @@ -33,7 +33,6 @@ group("grit_python_unittests") { "//testing/scripts/run_isolated_script_test.py", "//testing/xvfb.py", "//tools/grit/", - "//third_party/catapult/third_party/typ/", ] } --- a/src/3rdparty/chromium/tools/gritsettings/resource_ids.spec +++ b/src/3rdparty/chromium/tools/gritsettings/resource_ids.spec @@ -499,12 +499,6 @@ "content/shell/shell_resources.grd": { "includes": [2940], }, - - # This file is generated during the build. - "<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.grd": { - "META": {"sizes": {"includes": [20],}}, - "includes": [2960], - }, # END content/ section. # START ios/web/ section. --- a/src/3rdparty/chromium/tools/metrics/BUILD.gn +++ b/src/3rdparty/chromium/tools/metrics/BUILD.gn @@ -56,7 +56,6 @@ group("metrics_python_tests") { "//testing/scripts/common.py", "//testing/xvfb.py", "//testing/test_env.py", - "//third_party/catapult/third_party/typ/", # Scripts we depend on. Their unit tests are also included. "//tools/json_comment_eater/json_comment_eater.py", --- a/src/3rdparty/chromium/tools/perf/chrome_telemetry_build/BUILD.gn +++ b/src/3rdparty/chromium/tools/perf/chrome_telemetry_build/BUILD.gn @@ -107,7 +107,6 @@ group("telemetry_chrome_test_without_chr "//tools/perf/core/", # chrome_telemetry_build/ depends on core/ ] data_deps = [ - "//third_party/catapult:telemetry_chrome_test_support", "//tools/metrics:metrics_python_tests", ] @@ -151,7 +150,5 @@ group("telemetry_chrome_test_without_chr "//build/android:devil_chromium_py", "//build/android:stack_tools", ] - } else if (!is_fuchsia) { - data_deps += [ "//third_party/catapult/telemetry:bitmaptools" ] } } --- a/src/3rdparty/chromium/tools/perf/core/perfetto_binary_roller/BUILD.gn +++ b/src/3rdparty/chromium/tools/perf/core/perfetto_binary_roller/BUILD.gn @@ -7,7 +7,6 @@ import("//build/util/generate_wrapper.gn generate_wrapper("upload_trace_processor") { testonly = true data_deps = [ - "//third_party/catapult:telemetry_chrome_test_support", "//third_party/perfetto/src/trace_processor:trace_processor_shell", ] data = [ --- a/src/3rdparty/chromium/tools/polymer/BUILD.gn +++ b/src/3rdparty/chromium/tools/polymer/BUILD.gn @@ -10,6 +10,5 @@ group("polymer_tools_python_unittests") "//testing/scripts/run_isolated_script_test.py", "//testing/xvfb.py", "//tools/polymer/", - "//third_party/catapult/third_party/typ/", ] } --- a/src/3rdparty/chromium/v8/tools/BUILD.gn +++ b/src/3rdparty/chromium/v8/tools/BUILD.gn @@ -31,10 +31,6 @@ group("v8_android_test_runner_deps") { if (is_android && !build_with_chromium) { data_deps = [ "//build/android:test_runner_py" ] - data = [ - # This is used by android.py, but not included by test_runner_py above. - "//third_party/catapult/devil/devil/android/perf/", - ] } } --- a/src/3rdparty/chromium/weblayer/shell/BUILD.gn +++ b/src/3rdparty/chromium/weblayer/shell/BUILD.gn @@ -161,7 +161,6 @@ repack("support_pak") { "$root_gen_dir/components/strings/components_locale_settings_en-US.pak", "$root_gen_dir/components/strings/components_strings_en-US.pak", "$root_gen_dir/content/app/resources/content_resources_100_percent.pak", - "$root_gen_dir/content/browser/tracing/tracing_resources.pak", "$root_gen_dir/content/content_resources.pak", "$root_gen_dir/content/dev_ui_content_resources.pak", "$root_gen_dir/mojo/public/js/mojo_bindings_resources.pak", @@ -182,7 +181,6 @@ repack("support_pak") { "//content:content_resources", "//content:dev_ui_content_resources", "//content/app/resources", - "//content/browser/tracing:resources", "//mojo/public/js:resources", "//net:net_resources", "//third_party/blink/public:resources", --- a/src/core/qtwebengine_resources.gni +++ b/src/core/qtwebengine_resources.gni @@ -27,7 +27,6 @@ repack("qtwebengine_repack_resources") { "$root_gen_dir/components/components_resources.pak", "$root_gen_dir/components/dev_ui_components_resources.pak", "$root_gen_dir/content/browser/resources/media/media_internals_resources.pak", - "$root_gen_dir/content/browser/tracing/tracing_resources.pak", "$root_gen_dir/content/content_resources.pak", "$root_gen_dir/content/dev_ui_content_resources.pak", "$root_gen_dir/mojo/public/js/mojo_bindings_resources.pak", @@ -44,7 +43,6 @@ repack("qtwebengine_repack_resources") { "//components/resources:components_resources_grit", "//components/resources:dev_ui_components_resources_grit", "//content/browser/resources/media:media_internals_resources", - "//content/browser/tracing:resources", "//content:content_resources_grit", "//content:dev_ui_content_resources_grit", "//mojo/public/js:resources",