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

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

Issue 937593002: Changed identity API to use promises instead of callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed bad merge Created 5 years, 10 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/wcs_sandbox_container.js
diff --git a/remoting/webapp/crd/js/wcs_sandbox_container.js b/remoting/webapp/crd/js/wcs_sandbox_container.js
index 0934df42e5a25f46c22c406a23145ba2a19f98f6..c39759879cbab9deb153b70e2adcb05b13b99abc 100644
--- a/remoting/webapp/crd/js/wcs_sandbox_container.js
+++ b/remoting/webapp/crd/js/wcs_sandbox_container.js
@@ -97,8 +97,9 @@ remoting.WcsSandboxContainer.prototype.ensureAccessTokenRefreshTimer_ =
* @return {void} Nothing.
*/
remoting.WcsSandboxContainer.prototype.refreshAccessToken_ = function() {
- remoting.identity.callWithToken(
- this.setAccessToken_.bind(this), this.onError_);
+ remoting.identity.getToken().then(
+ this.setAccessToken_.bind(this),
+ remoting.Error.handler(this.onError_));
};
/**
« no previous file with comments | « remoting/webapp/crd/js/session_connector_impl.js ('k') | remoting/webapp/unittests/apps_v2_migration_unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698