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

Unified Diff: remoting/host/client_session.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/host/client_session.h ('k') | remoting/host/client_session_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index 78dcddf7ec1872c5687be3e918a67686139ec7cb..6cf1c7f59d76134f83237c01b7c047703dc7a843 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -8,8 +8,6 @@
#include "base/task.h"
#include "remoting/host/capturer.h"
-#include "remoting/host/user_authenticator.h"
-#include "remoting/proto/auth.pb.h"
#include "remoting/proto/event.pb.h"
// The number of remote mouse events to record for the purpose of eliminating
@@ -29,12 +27,10 @@ using protocol::MouseEvent;
ClientSession::ClientSession(
EventHandler* event_handler,
- UserAuthenticator* user_authenticator,
scoped_refptr<protocol::ConnectionToClient> connection,
protocol::InputStub* input_stub,
Capturer* capturer)
: event_handler_(event_handler),
- user_authenticator_(user_authenticator),
connection_(connection),
client_jid_(connection->session()->jid()),
input_stub_(input_stub),
@@ -47,36 +43,9 @@ ClientSession::ClientSession(
ClientSession::~ClientSession() {
}
-void ClientSession::BeginSessionRequest(
- const protocol::LocalLoginCredentials* credentials,
- const base::Closure& done) {
- DCHECK(event_handler_);
-
- base::ScopedClosureRunner done_runner(done);
-
- bool success = false;
- switch (credentials->type()) {
- case protocol::PASSWORD:
- success = user_authenticator_->Authenticate(credentials->username(),
- credentials->credential());
- break;
-
- default:
- LOG(ERROR) << "Invalid credentials type " << credentials->type();
- break;
- }
-
- OnAuthorizationComplete(success);
-}
-
-void ClientSession::OnAuthorizationComplete(bool success) {
- if (success) {
- authenticated_ = true;
- event_handler_->LocalLoginSucceeded(connection_.get());
- } else {
- LOG(WARNING) << "Login failed";
- event_handler_->LocalLoginFailed(connection_.get());
- }
+void ClientSession::OnAuthenticationComplete() {
+ authenticated_ = true;
+ event_handler_->OnAuthenticationComplete(connection_.get());
}
void ClientSession::InjectKeyEvent(const KeyEvent& event) {
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/host/client_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698