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

Unified Diff: remoting/protocol/channel_multiplexer.cc

Issue 1582583003: Fix BufferedSocketWriter to buffer everything before it starts writing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/channel_dispatcher_base.cc ('k') | remoting/protocol/client_video_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/channel_multiplexer.cc
diff --git a/remoting/protocol/channel_multiplexer.cc b/remoting/protocol/channel_multiplexer.cc
index ecdf46279dc2d272a2819a3fb93bb42fa757c974..7625afbb2cdc446d17e2e4a0919ebd7350aa49bf 100644
--- a/remoting/protocol/channel_multiplexer.cc
+++ b/remoting/protocol/channel_multiplexer.cc
@@ -372,10 +372,10 @@ void ChannelMultiplexer::OnBaseChannelReady(
reader_.StartReading(base_channel_.get(),
base::Bind(&ChannelMultiplexer::OnBaseChannelError,
base::Unretained(this)));
- writer_.Init(base::Bind(&P2PStreamSocket::Write,
- base::Unretained(base_channel_.get())),
- base::Bind(&ChannelMultiplexer::OnBaseChannelError,
- base::Unretained(this)));
+ writer_.Start(base::Bind(&P2PStreamSocket::Write,
+ base::Unretained(base_channel_.get())),
+ base::Bind(&ChannelMultiplexer::OnBaseChannelError,
+ base::Unretained(this)));
}
DoCreatePendingChannels();
« no previous file with comments | « remoting/protocol/channel_dispatcher_base.cc ('k') | remoting/protocol/client_video_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698