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

Unified Diff: remoting/protocol/webrtc_connection_to_client.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/stream_message_pipe_adapter.cc ('k') | remoting/protocol/webrtc_connection_to_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_connection_to_client.cc
diff --git a/remoting/protocol/webrtc_connection_to_client.cc b/remoting/protocol/webrtc_connection_to_client.cc
index 65df2fc4f4a82e4e47877a133b536a7571dbab59..92430d6d0d0df94171d73760c6e6ed3cd79ca07d 100644
--- a/remoting/protocol/webrtc_connection_to_client.cc
+++ b/remoting/protocol/webrtc_connection_to_client.cc
@@ -155,10 +155,11 @@ void WebrtcConnectionToClient::OnSessionStateChange(Session::State state) {
}
void WebrtcConnectionToClient::OnWebrtcTransportConnecting() {
- // Create outgoing control channel by initializing |control_dispatcher_|.
- // |event_dispatcher_| is initialized later because event channel is expected
- // to be created by the client.
- control_dispatcher_->Init(transport_->outgoing_channel_factory(), this);
+ // Create outgoing control channel. |event_dispatcher_| is initialized later
+ // because event channel is expected to be created by the client.
+ control_dispatcher_->Init(
+ transport_->CreateOutgoingChannel(control_dispatcher_->channel_name()),
+ this);
}
void WebrtcConnectionToClient::OnWebrtcTransportConnected() {
« no previous file with comments | « remoting/protocol/stream_message_pipe_adapter.cc ('k') | remoting/protocol/webrtc_connection_to_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698