diff options
author | Tomas Gunnarsson <tommi@webrtc.org> | 2020-06-16 18:39:50 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-17 07:06:34 +0000 |
commit | 6476d0bf02d2871bff3a3d5db79d576eb6f58ead (patch) | |
tree | 341a635f18354379026303cc35983086a910131e /pc/data_channel_controller.cc | |
parent | 4db954eec11258d57e0d507b0436a183178dae22 (diff) | |
download | webrtc-6476d0bf02d2871bff3a3d5db79d576eb6f58ead.tar.gz |
Consolidate creation of DataChannel proxy to a single place
Change-Id: I707733f521a4fda1536741b204a559dd511d0c00
Bug: webrtc:11547
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/177344
Reviewed-by: Taylor <deadbeef@webrtc.org>
Commit-Queue: Tommi <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31535}
Diffstat (limited to 'pc/data_channel_controller.cc')
-rw-r--r-- | pc/data_channel_controller.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pc/data_channel_controller.cc b/pc/data_channel_controller.cc index a8a1491b7f..710ca8e531 100644 --- a/pc/data_channel_controller.cc +++ b/pc/data_channel_controller.cc @@ -251,9 +251,8 @@ void DataChannelController::OnDataChannelOpenMessage( return; } - // TODO(bugs.webrtc.org/11547): Inject the network thread as well. rtc::scoped_refptr<DataChannelInterface> proxy_channel = - DataChannelProxy::Create(signaling_thread(), channel); + DataChannel::CreateProxy(std::move(channel)); pc_->Observer()->OnDataChannel(std::move(proxy_channel)); pc_->NoteDataAddedEvent(); } @@ -508,9 +507,8 @@ void DataChannelController::CreateRemoteRtpDataChannel(const std::string& label, return; } channel->SetReceiveSsrc(remote_ssrc); - // TODO(bugs.webrtc.org/11547): Inject the network thread as well. rtc::scoped_refptr<DataChannelInterface> proxy_channel = - DataChannelProxy::Create(signaling_thread(), channel); + DataChannel::CreateProxy(std::move(channel)); pc_->Observer()->OnDataChannel(std::move(proxy_channel)); } |