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

Unified Diff: remoting/client/chromoting_client.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/client/chromoting_client.h ('k') | remoting/client/chromoting_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/chromoting_client.cc
diff --git a/remoting/client/chromoting_client.cc b/remoting/client/chromoting_client.cc
index 87a7fe0fb16257c9b51d19c884e7d80992ed6879..327afa067dfa04bc9d65367bcc9acbc7e6b02725 100644
--- a/remoting/client/chromoting_client.cc
+++ b/remoting/client/chromoting_client.cc
@@ -155,7 +155,8 @@ void ChromotingClient::OnConnectionState(
protocol::ConnectionToHost::Error error) {
DCHECK(message_loop()->BelongsToCurrentThread());
VLOG(1) << "ChromotingClient::OnConnectionState(" << state << ")";
- if (state == protocol::ConnectionToHost::CONNECTED)
+ if (state == protocol::ConnectionToHost::CONNECTED ||
+ state == protocol::ConnectionToHost::AUTHENTICATED)
Initialize();
view_->SetConnectionState(state, error);
}
@@ -203,27 +204,4 @@ void ChromotingClient::Initialize() {
input_handler_->Initialize();
}
-////////////////////////////////////////////////////////////////////////////
-// ClientStub control channel interface.
-void ChromotingClient::BeginSessionResponse(
- const protocol::LocalLoginStatus* msg, const base::Closure& done) {
- if (!message_loop()->BelongsToCurrentThread()) {
- thread_proxy_.PostTask(FROM_HERE, base::Bind(
- &ChromotingClient::BeginSessionResponse, base::Unretained(this),
- msg, done));
- return;
- }
-
- VLOG(1) << "BeginSessionResponse received";
-
- // Inform the connection that the client has been authenticated. This will
- // enable the communication channels.
- if (msg->success()) {
- connection_->OnClientAuthenticated();
- }
-
- view_->UpdateLoginStatus(msg->success(), msg->error_info());
- done.Run();
-}
-
} // namespace remoting
« no previous file with comments | « remoting/client/chromoting_client.h ('k') | remoting/client/chromoting_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698