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

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

Issue 687873003: Allow the background page to get an OAuth token for apps v1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 ce7c18ecd3e7c28b2e55a0973ffcd4e01a6b5215..a414c74c78f922553a95851cae4dc49ae25d5672 100644
--- a/remoting/webapp/crd/js/host_list.js
+++ b/remoting/webapp/crd/js/host_list.js
@@ -497,7 +497,9 @@ remoting.HostList.prototype.onLocalHostStarted = function(
*/
remoting.HostList.prototype.onErrorClick_ = function() {
if (this.lastError_ == remoting.Error.AUTHENTICATION_FAILED) {
- remoting.oauth2.doAuthRedirect();
+ remoting.oauth2.doAuthRedirect(function() {
+ window.location.reload();
+ });
} else {
this.refresh(remoting.updateLocalHostState);
}

Powered by Google App Engine
This is Rietveld 408576698