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

Unified Diff: remoting/webapp/crd/js/host_list.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: Address reviewer's feedback 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
Index: remoting/webapp/crd/js/host_list.js
diff --git a/remoting/webapp/crd/js/host_list.js b/remoting/webapp/crd/js/host_list.js
index cdee3057d6ac7d60fd910ccdb3511af7512c0a1e..6a02162d7728d131f58e7e8e78010d5b39aee4e1 100644
--- a/remoting/webapp/crd/js/host_list.js
+++ b/remoting/webapp/crd/js/host_list.js
@@ -482,9 +482,7 @@ remoting.HostList.prototype.onLocalHostStarted = function(
*/
remoting.HostList.prototype.onErrorClick_ = function() {
if (this.lastError_ == remoting.Error.AUTHENTICATION_FAILED) {
- remoting.oauth2.doAuthRedirect(function() {
- window.location.reload();
- });
+ remoting.identity.handleAuthFailureAndRelaunch();
} else {
this.refresh(remoting.updateLocalHostState);
}

Powered by Google App Engine
This is Rietveld 408576698