| Index: remoting/webapp/js_proto/chrome_mocks.js
|
| diff --git a/remoting/webapp/js_proto/chrome_mocks.js b/remoting/webapp/js_proto/chrome_mocks.js
|
| index 3b404b64ccf506d8c84eff075b835712fd9775f9..e64421db527c5d8ef483d5f633452e66fb928613 100644
|
| --- a/remoting/webapp/js_proto/chrome_mocks.js
|
| +++ b/remoting/webapp/js_proto/chrome_mocks.js
|
| @@ -192,8 +192,13 @@ chromeMocks.Identity = function() {
|
| * @param {function(string=):void} callback
|
| */
|
| chromeMocks.Identity.prototype.getAuthToken = function(options, callback) {
|
| + // Append the 'scopes' array, if present, to the dummy token.
|
| + var token = this.token_;
|
| + if (token !== undefined && options['scopes'] !== undefined) {
|
| + token += JSON.stringify(options['scopes']);
|
| + }
|
| // Don't use setTimeout because sinon mocks it.
|
| - window.requestAnimationFrame(callback.bind(null, this.token_));
|
| + window.requestAnimationFrame(callback.bind(null, token));
|
| };
|
|
|
| /** @param {string} token */
|
|
|