| Index: chrome/browser/resources/google_now/utility.js
|
| diff --git a/chrome/browser/resources/google_now/utility.js b/chrome/browser/resources/google_now/utility.js
|
| index bfcb6ed076fdc3892b2b13433265944ef5ce702a..5960636aeb4eaad422972eb482d44eb5491902c8 100644
|
| --- a/chrome/browser/resources/google_now/utility.js
|
| +++ b/chrome/browser/resources/google_now/utility.js
|
| @@ -141,7 +141,13 @@ function sendErrorReport(error) {
|
| request.onloadend = function(event) {
|
| console.log('sendErrorReport status: ' + request.status);
|
| };
|
| - request.send(JSON.stringify(errorObject));
|
| +
|
| + chrome.identity.getAuthToken({interactive: false}, function(token) {
|
| + if (token) {
|
| + request.setRequestHeader('Authorization', 'Bearer ' + token);
|
| + request.send(JSON.stringify(errorObject));
|
| + }
|
| + });
|
| }
|
|
|
| // Limiting 1 error report per background page load.
|
|
|