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

Unified Diff: remoting/client/chromoting_session.cc

Issue 2971903002: Adding error handling to the connection flow. (Closed)
Patch Set: Minor cleanup before review. Created 3 years, 5 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 | « no previous file | remoting/ios/app/BUILD.gn » ('j') | remoting/ios/app/client_connection_view_controller.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/chromoting_session.cc
diff --git a/remoting/client/chromoting_session.cc b/remoting/client/chromoting_session.cc
index ae7eda4427d3f40838b823986ad58b825578bf45..f528701b749061e6e21ff947ed8ce59f4cfeb676 100644
--- a/remoting/client/chromoting_session.cc
+++ b/remoting/client/chromoting_session.cc
@@ -277,6 +277,10 @@ void ChromotingSession::OnConnectionState(
client_->host_stub()->RequestPairing(request);
}
+ if (state == protocol::ConnectionToHost::FAILED) {
+ remoting::SignalStrategy::Error err = signaling_->GetError();
Yuwei 2017/07/05 21:43:41 Where is err used?
nicholss 2017/07/06 20:49:01 Sorry, this was debug, I had already removed it in
+ }
+
runtime_->ui_task_runner()->PostTask(
FROM_HERE, base::Bind(&ChromotingSession::Delegate::OnConnectionState,
delegate_, state, error));
« no previous file with comments | « no previous file | remoting/ios/app/BUILD.gn » ('j') | remoting/ios/app/client_connection_view_controller.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698