Move dependency on chromium DefaultTaskQueueFactory
That will avoid linkage error of targets that depend
on global_task_queue_factory without depending on rtc_task_queue
Bug: webrtc:10191
Change-Id: Ia67ea0a3abb715e28160e4e376133cc0309b14e2
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/126621
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27053}
diff --git a/api/task_queue/BUILD.gn b/api/task_queue/BUILD.gn
index 0129512..b57069b 100644
--- a/api/task_queue/BUILD.gn
+++ b/api/task_queue/BUILD.gn
@@ -104,6 +104,7 @@
if (build_with_chromium) {
# Chromium uses link-time injection of the CreateDefaultTaskQueueFactory
+ deps += [ "../../../webrtc_overrides:task_queue_impl" ]
sources += [ "default_task_queue_factory.h" ]
} else {
deps += [ ":default_task_queue_factory" ]