summaryrefslogtreecommitdiff
path: root/chromium/content/common
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-08-03 13:19:41 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-06-21 16:29:04 +0200
commitffe7412360685cbcb8d449b3bd118f2f561a0360 (patch)
tree2df453571ba63406ad0ffe38bffdbd337ef267f5 /chromium/content/common
parentbae426d6ca06fe6beb40b62db316fd29e96540ab (diff)
downloadqtwebengine-chromium-ffe7412360685cbcb8d449b3bd118f2f561a0360.tar.gz
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 <michal.klocek@qt.io>
Diffstat (limited to 'chromium/content/common')
-rw-r--r--chromium/content/common/BUILD.gn10
1 files changed, 10 insertions, 0 deletions
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" ]
}