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

Unified Diff: remoting/protocol/message_reader.cc

Issue 2146213002: Add support for dynamic channels in WebrtcTransport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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/message_pipe.h ('k') | remoting/protocol/stream_message_pipe_adapter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/message_reader.cc
diff --git a/remoting/protocol/message_reader.cc b/remoting/protocol/message_reader.cc
index c93b7a4edde6e6624cdbbec18c1a696fef5cf7ce..60c394019202a7252292f164fa3f983a863bd448 100644
--- a/remoting/protocol/message_reader.cc
+++ b/remoting/protocol/message_reader.cc
@@ -114,8 +114,9 @@ void MessageReader::OnDataReceived(net::IOBuffer* data, int data_size) {
}
void MessageReader::RunCallback(std::unique_ptr<CompoundBuffer> message) {
- if (!message_received_callback_.is_null())
+ if (!message_received_callback_.is_null()) {
message_received_callback_.Run(std::move(message));
+ }
}
} // namespace protocol
« no previous file with comments | « remoting/protocol/message_pipe.h ('k') | remoting/protocol/stream_message_pipe_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698