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

Unified Diff: remoting/host/client_session.cc

Issue 8662001: Remove AccessVerifier interface. (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
Index: remoting/host/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index e063fdac316c04ea569cfc2f3fffe78521609d29..df75407ed09381244a11085194a60a19e222aef8 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -109,9 +109,12 @@ void ClientSession::OnConnectionClosed(
}
void ClientSession::OnConnectionFailed(
- protocol::ConnectionToClient* connection) {
+ protocol::ConnectionToClient* connection,
+ protocol::Session::Error error) {
DCHECK(CalledOnValidThread());
DCHECK_EQ(connection_.get(), connection);
+ if (error == protocol::Session::AUTHENTICATION_FAILED)
+ event_handler_->OnSessionAuthenticationFailed(this);
// TODO(sergeyu): Log failure reason?
event_handler_->OnSessionClosed(this);
}

Powered by Google App Engine
This is Rietveld 408576698