Index: webrtc/p2p/base/transportcontroller.cc |
diff --git a/webrtc/p2p/base/transportcontroller.cc b/webrtc/p2p/base/transportcontroller.cc |
index 708c60f9df5471f4efad73a6d259a0dd39210162..c37276145b0a9106210558271eab7f0c6a0a280b 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 { |
@@ -218,6 +222,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; |