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

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

Issue 1123183005: Respect opt_scopes in getNewToken. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/identity.js
diff --git a/remoting/webapp/crd/js/identity.js b/remoting/webapp/crd/js/identity.js
index d53a0395d010e372a7eaf4ffc22a0dfa284fd7db..2db3f03dccb61e72d235e4f4a2e9e4590be5412e 100644
--- a/remoting/webapp/crd/js/identity.js
+++ b/remoting/webapp/crd/js/identity.js
@@ -95,7 +95,7 @@ remoting.Identity.prototype.getNewToken = function(opt_scopes) {
return this.getToken(opt_scopes).then(function(/** string */ token) {
return new Promise(function(resolve, reject) {
chrome.identity.removeCachedAuthToken({'token': token }, function() {
- resolve(that.getToken());
+ resolve(that.getToken(opt_scopes));
});
});
});

Powered by Google App Engine
This is Rietveld 408576698