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

Unified Diff: remoting/webapp/crd/js/event_handlers.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/event_handlers.js
diff --git a/remoting/webapp/crd/js/event_handlers.js b/remoting/webapp/crd/js/event_handlers.js
index 480dffd2ee7c304c97f15aca874ba8ba39fc0bd4..91040b490bf2afeecb03f7de7165b21e87ef3ef6 100644
--- a/remoting/webapp/crd/js/event_handlers.js
+++ b/remoting/webapp/crd/js/event_handlers.js
@@ -40,7 +40,9 @@ function onLoad() {
};
var doAuthRedirect = function() {
if (!base.isAppsV2()) {
- remoting.oauth2.doAuthRedirect();
+ remoting.oauth2.doAuthRedirect(function() {
+ window.location.reload();
+ });
}
};
var fixAuthError = function() {

Powered by Google App Engine
This is Rietveld 408576698