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

Unified Diff: remoting/host/client_session.cc

Issue 9567033: Cleanup error handling in the client plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index 7989e094a37456371486e8b3c40ab97bc8186d25..6ff6164add558a5ff006bc22d5a38b0f5ea16f77 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -109,10 +109,10 @@ void ClientSession::OnConnectionClosed(
void ClientSession::OnConnectionFailed(
protocol::ConnectionToClient* connection,
- protocol::Session::Error error) {
+ protocol::ErrorCode error) {
DCHECK(CalledOnValidThread());
DCHECK_EQ(connection_.get(), connection);
- if (error == protocol::Session::AUTHENTICATION_FAILED)
+ if (error == protocol::AUTHENTICATION_FAILED)
event_handler_->OnSessionAuthenticationFailed(this);
// TODO(sergeyu): Log failure reason?
event_handler_->OnSessionClosed(this);

Powered by Google App Engine
This is Rietveld 408576698