Index: webrtc/p2p/base/transportcontroller.cc |
diff --git a/webrtc/p2p/base/transportcontroller.cc b/webrtc/p2p/base/transportcontroller.cc |
index 128d2fc656406d75b7b094baf1e8a57cd32513e1..1d45c3b0bbb00e95cdda567516f3bf36039c20c4 100644 |
--- a/webrtc/p2p/base/transportcontroller.cc |
+++ b/webrtc/p2p/base/transportcontroller.cc |
@@ -19,6 +19,10 @@ |
#include "webrtc/p2p/base/p2ptransport.h" |
#include "webrtc/p2p/base/port.h" |
+#ifdef HAVE_QUIC |
+#include "webrtc/p2p/quic/quictransport.h" |
+#endif // HAVE_QUIC |
+ |
namespace cricket { |
enum { |
@@ -219,6 +223,11 @@ Transport* TransportController::CreateTransport_w( |
const std::string& transport_name) { |
RTC_DCHECK(worker_thread_->IsCurrent()); |
+#ifdef HAVE_QUIC |
+ if (quic_) { |
+ return new QuicTransport(transport_name, port_allocator(), certificate_); |
+ } |
+#endif // HAVE_QUIC |
Transport* transport = new DtlsTransport<P2PTransport>( |
transport_name, port_allocator(), certificate_); |
return transport; |