From ffe7412360685cbcb8d449b3bd118f2f561a0360 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Mon, 3 Aug 2020 13:19:41 +0200 Subject: Bring enable_webrtc back Returns the GN args and BUILDFLAG to disable WebRTC code shrinking the Chromium binary by a 15%. Reverting https://chromium-review.googlesource.com/1044220, https://chromium-review.googlesource.com/1059408 and fixes later bitrot. Change-Id: Ic46c2832dbfacaeffa6a00a12a8a144cf0adf7f0 Reviewed-by: Michal Klocek --- chromium/content/common/BUILD.gn | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'chromium/content/common') diff --git a/chromium/content/common/BUILD.gn b/chromium/content/common/BUILD.gn index ecd3901943a..09cdf10d1dc 100644 --- a/chromium/content/common/BUILD.gn +++ b/chromium/content/common/BUILD.gn @@ -7,6 +7,7 @@ import("//build/config/features.gni") import("//build/config/ui.gni") import("//content/public/common/zygote/features.gni") import("//ipc/features.gni") +import("//media/media_options.gni") import("//mojo/public/tools/bindings/mojom.gni") import("//ppapi/buildflags/buildflags.gni") import("//sandbox/features.gni") @@ -326,6 +327,15 @@ source_set("common") { deps += [ "//ppapi/proxy:ipc_sources" ] } + if (enable_webrtc) { + sources += [ + "p2p_messages.h", + "p2p_socket_type.h", + ] + deps += [ + "//third_party/webrtc_overrides:webrtc_component", + ] + } if (!use_x11 && !use_ozone) { sources -= [ "cursors/webcursor_ozone.cc" ] } -- cgit v1.2.1