| 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 a77be6934f6ad28c156d6c4f50d9aa5071c593c9..c6ee618afbdc2bf64f0b9148d9ed413adfc26c44 100644
|
| --- a/remoting/webapp/crd/js/client_session.js
|
| +++ b/remoting/webapp/crd/js/client_session.js
|
| @@ -606,7 +606,11 @@ remoting.ClientSession.prototype.sendGoogleDriveAccessToken_ = function() {
|
| var sendError = function(error) {
|
| console.log('Failed to refresh access token: ' + error.toString());
|
| };
|
| - remoting.identity.getNewToken().
|
| + var googleDriveScopes = [
|
| + 'https://docs.google.com/feeds/',
|
| + 'https://www.googleapis.com/auth/drive'
|
| + ];
|
| + remoting.identity.getNewToken(googleDriveScopes).
|
| then(sendToken).
|
| catch(remoting.Error.handler(sendError));
|
| window.setTimeout(this.sendGoogleDriveAccessToken_.bind(this),
|
|
|