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

Unified Diff: remoting/protocol/channel_dispatcher_base.cc

Issue 2176443002: Add client and host dispatchers for video_stats channel to send video stats from host to client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simple_channel
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
Index: remoting/protocol/channel_dispatcher_base.cc
diff --git a/remoting/protocol/channel_dispatcher_base.cc b/remoting/protocol/channel_dispatcher_base.cc
index 399c2f32b39474e2c2afcef8ad1713499c86bacc..fd8f21e8c9c964e97b6c549888d3e484e92a4d21 100644
--- a/remoting/protocol/channel_dispatcher_base.cc
+++ b/remoting/protocol/channel_dispatcher_base.cc
@@ -14,7 +14,7 @@
namespace remoting {
namespace protocol {
-ChannelDispatcherBase::ChannelDispatcherBase(const char* channel_name)
+ChannelDispatcherBase::ChannelDispatcherBase(const std::string& channel_name)
: channel_name_(channel_name) {}
ChannelDispatcherBase::~ChannelDispatcherBase() {
@@ -57,6 +57,7 @@ void ChannelDispatcherBase::OnMessageReceived(
void ChannelDispatcherBase::OnMessagePipeClosed() {
is_connected_ = false;
+ message_pipe_.reset();
event_handler_->OnChannelClosed(this);
}

Powered by Google App Engine
This is Rietveld 408576698