Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(517)

Unified Diff: remoting/protocol/webrtc_connection_to_host.cc

Issue 2164163002: Simplify data channel creation logic in WebRTC-based protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/webrtc_connection_to_client.cc ('k') | remoting/protocol/webrtc_data_stream_adapter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_connection_to_host.cc
diff --git a/remoting/protocol/webrtc_connection_to_host.cc b/remoting/protocol/webrtc_connection_to_host.cc
index c4deea51c3ff4fd401b731a36607cccd51dedf9a..eda4347af7572980c0c17ceaecb212d35086c6cf 100644
--- a/remoting/protocol/webrtc_connection_to_host.cc
+++ b/remoting/protocol/webrtc_connection_to_host.cc
@@ -104,7 +104,9 @@ void WebrtcConnectionToHost::OnSessionStateChange(Session::State state) {
void WebrtcConnectionToHost::OnWebrtcTransportConnecting() {
event_dispatcher_.reset(new ClientEventDispatcher());
- event_dispatcher_->Init(transport_->outgoing_channel_factory(), this);
+ event_dispatcher_->Init(
+ transport_->CreateOutgoingChannel(event_dispatcher_->channel_name()),
+ this);
}
void WebrtcConnectionToHost::OnWebrtcTransportConnected() {}
« no previous file with comments | « remoting/protocol/webrtc_connection_to_client.cc ('k') | remoting/protocol/webrtc_data_stream_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698