| Index: remoting/webapp/crd/js/client_session.js
|
| diff --git a/remoting/webapp/crd/js/client_session.js b/remoting/webapp/crd/js/client_session.js
|
| index 1f396925bc505a342fcfbe5c9e6b4b42634cc514..9ad9bc6ce1249c705d541f292ba357ab90c6af1b 100644
|
| --- a/remoting/webapp/crd/js/client_session.js
|
| +++ b/remoting/webapp/crd/js/client_session.js
|
| @@ -1581,8 +1581,10 @@ remoting.ClientSession.prototype.sendGoogleDriveAccessToken_ = function() {
|
| /** @param {remoting.Error} error */
|
| var sendError = function(error) {
|
| console.log('Failed to refresh access token: ' + error);
|
| - }
|
| - remoting.identity.callWithNewToken(sendToken, sendError);
|
| + };
|
| + remoting.identity.getNewToken().
|
| + then(sendToken).
|
| + catch(remoting.Error.handler(sendError));
|
| window.setTimeout(this.sendGoogleDriveAccessToken_.bind(this),
|
| remoting.ACCESS_TOKEN_RESEND_INTERVAL_MS);
|
| };
|
|
|