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

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: 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
Index: remoting/host/desktop_environment.cc
diff --git a/remoting/host/desktop_environment.cc b/remoting/host/desktop_environment.cc
index e6e105728b35aa8eefd8ec63847d29b322576ca6..233bbda379a6ca36a93cb85fc9bbfb8d93b27a6f 100644
--- a/remoting/host/desktop_environment.cc
+++ b/remoting/host/desktop_environment.cc
@@ -32,7 +32,9 @@ void DesktopEnvironment::SuggestResolution(
}
void DesktopEnvironment::BeginSessionRequest(
- const protocol::LocalLoginCredentials* credentials, Task* done) {
+ protocol::ConnectionToClient* connection,
+ const protocol::LocalLoginCredentials* credentials,
+ Task* done) {
DCHECK(event_handler_);
bool success = false;
@@ -49,10 +51,10 @@ void DesktopEnvironment::BeginSessionRequest(
}
if (success) {
- event_handler_->LocalLoginSucceeded();
+ event_handler_->LocalLoginSucceeded(connection);
} else {
LOG(WARNING) << "Login failed for user " << credentials->username();
- event_handler_->LocalLoginFailed();
+ event_handler_->LocalLoginFailed(connection);
}
done->Run();

Powered by Google App Engine
This is Rietveld 408576698