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

Unified Diff: remoting/protocol/host_message_dispatcher.cc

Issue 6030007: Chromoting protocol layers to receive and send login messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix style Created 10 years 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/host_message_dispatcher.cc
diff --git a/remoting/protocol/host_message_dispatcher.cc b/remoting/protocol/host_message_dispatcher.cc
index eec734c2c470c8c1921503bf09258e96766131dc..f70037ff0097b204867fa0759d9e0b71120ad6fa 100644
--- a/remoting/protocol/host_message_dispatcher.cc
+++ b/remoting/protocol/host_message_dispatcher.cc
@@ -80,6 +80,12 @@ void HostMessageDispatcher::OnControlMessageReceived(ControlMessage* message) {
if (message->has_suggest_resolution()) {
host_stub_->SuggestResolution(
&message->suggest_resolution(), NewDeleteTask(ref_msg));
+ } else if (message->has_begin_session_request()) {
+ host_stub_->BeginSessionRequest(
+ &message->begin_session_request().credentials(),
+ NewDeleteTask(ref_msg));
+ } else {
+ NOTREACHED() << "Invalid control message received";
}
}

Powered by Google App Engine
This is Rietveld 408576698