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

Unified Diff: remoting/webapp/crd/js/desktop_remoting.js

Issue 868203002: Handle authentication failures in the v2 app by restarting the app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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/webapp/crd/js/crd_event_handlers.js ('k') | remoting/webapp/crd/js/host_list.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/desktop_remoting.js
diff --git a/remoting/webapp/crd/js/desktop_remoting.js b/remoting/webapp/crd/js/desktop_remoting.js
index cdf4607ee95c3c80dbd788b70c042234e1c625a7..9e2e101062006af757ac5b61f02cf4d0d3b8f565 100644
--- a/remoting/webapp/crd/js/desktop_remoting.js
+++ b/remoting/webapp/crd/js/desktop_remoting.js
@@ -306,6 +306,12 @@ remoting.DesktopRemoting.prototype.handleError = function(errorTag) {
console.error('Connection failed: ' + errorTag);
remoting.accessCode = '';
+ if (errorTag === remoting.Error.AUTHENTICATION_FAILED) {
+ remoting.setMode(remoting.AppMode.HOME);
+ remoting.handleAuthFailureAndRelaunch();
+ return;
+ }
+
// Reset the refresh flag so that the next connection will retry if needed.
this.refreshHostJidIfOffline_ = true;
« no previous file with comments | « remoting/webapp/crd/js/crd_event_handlers.js ('k') | remoting/webapp/crd/js/host_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698