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

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

Issue 1123183005: Respect opt_scopes in getNewToken. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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
« no previous file with comments | « remoting/webapp/app_remoting/js/app_connected_view.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/base/js/identity.js
diff --git a/remoting/webapp/base/js/identity.js b/remoting/webapp/base/js/identity.js
index d53a0395d010e372a7eaf4ffc22a0dfa284fd7db..2db3f03dccb61e72d235e4f4a2e9e4590be5412e 100644
--- a/remoting/webapp/base/js/identity.js
+++ b/remoting/webapp/base/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));
});
});
});
« no previous file with comments | « remoting/webapp/app_remoting/js/app_connected_view.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698