| 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 511d7c39eab0e02b224788005be6418e4fae8ae0..dc2a2a9ccf96949f794959a288869591d9753092 100644
|
| --- a/remoting/webapp/crd/js/client_session.js
|
| +++ b/remoting/webapp/crd/js/client_session.js
|
| @@ -778,8 +778,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);
|
| };
|
|
|