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

Unified Diff: remoting/protocol/connection_to_host.cc

Issue 8351084: Remove old Authentication code that we don't use or need. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 1 month 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/connection_to_host.h ('k') | remoting/protocol/content_description.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_to_host.cc
diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc
index fd5463c6589bf39fb6e8568cdaf8010304f75bf5..1423d0125153e5592105f38b6289fb7980add78c 100644
--- a/remoting/protocol/connection_to_host.cc
+++ b/remoting/protocol/connection_to_host.cc
@@ -155,16 +155,6 @@ void ConnectionToHost::OnIncomingSession(
*response = SessionManager::DECLINE;
}
-void ConnectionToHost::OnClientAuthenticated() {
- // TODO(hclam): Don't send anything except authentication request if it is
- // not authenticated.
- SetState(AUTHENTICATED, OK);
-
- // Create and enable the input stub now that we're authenticated.
- input_sender_.reset(
- new InputSender(message_loop_, session_->event_channel()));
-}
-
ConnectionToHost::State ConnectionToHost::state() const {
return state_;
}
@@ -212,6 +202,8 @@ void ConnectionToHost::OnSessionStateChange(
case Session::CONNECTED_CHANNELS:
host_control_sender_.reset(
new HostControlSender(message_loop_, session_->control_channel()));
+ input_sender_.reset(
+ new InputSender(message_loop_, session_->event_channel()));
dispatcher_.reset(new ClientMessageDispatcher());
dispatcher_->Initialize(session_.get(), client_stub_);
@@ -241,6 +233,7 @@ void ConnectionToHost::NotifyIfChannelsReady() {
if (control_connected_ && input_connected_ && video_connected_ &&
state_ == CONNECTING) {
SetState(CONNECTED, OK);
+ SetState(AUTHENTICATED, OK);
}
}
« no previous file with comments | « remoting/protocol/connection_to_host.h ('k') | remoting/protocol/content_description.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698