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

Unified Diff: remoting/host/desktop_environment.cc

Issue 6711033: A new authenticated connection evicts an old one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 9 years, 9 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/host/desktop_environment.h ('k') | remoting/host/desktop_environment_fake.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_environment.cc
diff --git a/remoting/host/desktop_environment.cc b/remoting/host/desktop_environment.cc
index e6e105728b35aa8eefd8ec63847d29b322576ca6..edc17929d56fdd8dec93eebfb6d0b9636978a050 100644
--- a/remoting/host/desktop_environment.cc
+++ b/remoting/host/desktop_environment.cc
@@ -5,10 +5,6 @@
#include "remoting/host/desktop_environment.h"
#include "remoting/host/capturer.h"
-#include "remoting/host/chromoting_host.h"
-#include "remoting/host/user_authenticator.h"
-#include "remoting/proto/auth.pb.h"
-#include "remoting/protocol/client_stub.h"
#include "remoting/protocol/input_stub.h"
using remoting::protocol::InputStub;
@@ -17,46 +13,11 @@ namespace remoting {
DesktopEnvironment::DesktopEnvironment(Capturer* capturer,
InputStub* input_stub)
- : event_handler_(NULL),
- capturer_(capturer),
+ : capturer_(capturer),
input_stub_(input_stub) {
}
DesktopEnvironment::~DesktopEnvironment() {
}
-void DesktopEnvironment::SuggestResolution(
- const protocol::SuggestResolutionRequest* msg, Task* done) {
- done->Run();
- delete done;
-}
-
-void DesktopEnvironment::BeginSessionRequest(
- const protocol::LocalLoginCredentials* credentials, Task* done) {
- DCHECK(event_handler_);
-
- bool success = false;
- scoped_ptr<UserAuthenticator> authenticator(UserAuthenticator::Create());
- switch (credentials->type()) {
- case protocol::PASSWORD:
- success = authenticator->Authenticate(credentials->username(),
- credentials->credential());
- break;
-
- default:
- LOG(ERROR) << "Invalid credentials type " << credentials->type();
- break;
- }
-
- if (success) {
- event_handler_->LocalLoginSucceeded();
- } else {
- LOG(WARNING) << "Login failed for user " << credentials->username();
- event_handler_->LocalLoginFailed();
- }
-
- done->Run();
- delete done;
-}
-
} // namespace remoting
« no previous file with comments | « remoting/host/desktop_environment.h ('k') | remoting/host/desktop_environment_fake.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698