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

Unified Diff: remoting/protocol/client_message_dispatcher.cc

Issue 6277003: Simplified MessageReader and MessageDecoder classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 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/client_message_dispatcher.h ('k') | remoting/protocol/host_message_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/client_message_dispatcher.cc
diff --git a/remoting/protocol/client_message_dispatcher.cc b/remoting/protocol/client_message_dispatcher.cc
index c70588ac2c8b79cc1ad9d9a86a30059485c33eae..95686850f895e60ba3ea62e3fc949840b77da8a5 100644
--- a/remoting/protocol/client_message_dispatcher.cc
+++ b/remoting/protocol/client_message_dispatcher.cc
@@ -29,10 +29,10 @@ void ClientMessageDispatcher::Initialize(
return;
}
- control_message_reader_.reset(new MessageReader());
+ control_message_reader_.reset(new ProtobufMessageReader<ControlMessage>());
client_stub_ = client_stub;
- control_message_reader_->Init<ControlMessage>(
+ control_message_reader_->Init(
session->control_channel(),
NewCallback(this, &ClientMessageDispatcher::OnControlMessageReceived));
return;
« no previous file with comments | « remoting/protocol/client_message_dispatcher.h ('k') | remoting/protocol/host_message_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698