Chromium Code Reviews| Index: chrome/browser/resources/local_ntp/local_ntp.js |
| diff --git a/chrome/browser/resources/local_ntp/local_ntp.js b/chrome/browser/resources/local_ntp/local_ntp.js |
| index ec10dfc5e3dcfc20e74243ff8b5e174d6404a6d1..171ba9879a6cb0b5b32d29daccf85c935fd48481 100644 |
| --- a/chrome/browser/resources/local_ntp/local_ntp.js |
| +++ b/chrome/browser/resources/local_ntp/local_ntp.js |
| @@ -5,6 +5,8 @@ |
| // NOTE: If you modify this file, you also have to change its hash in |
| // local_ntp.html and in LocalNtpSource::GetContentSecurityPolicyScriptSrc. |
| +// To calculate the sum execute the following command |
| +// sha256sum local_ntp.js | cut -d " " -f 1 | xxd -r -p | base64 |
|
dpapad
2017/05/25 21:28:43
It is unfortunate that modifying this file is now
Marc Treib
2017/06/07 08:49:33
If there's a mismatch, you should get an error mes
|
| /** |
| @@ -637,7 +639,7 @@ function init() { |
| document.body.appendChild(ogScript); |
| ogScript.onload = function() { |
| injectOneGoogleBar(og.html, og.end_of_body_html); |
| - } |
| + }; |
| } else { |
| document.body.classList.add(CLASSES.NON_GOOGLE_PAGE); |
| } |
| @@ -717,9 +719,9 @@ function injectOneGoogleBar(barHtml, endOfBodyHtml) { |
| endOfBodyScript.src = |
| 'chrome-search://local-ntp/one-google/end-of-body.js'; |
| document.body.appendChild(endOfBodyScript); |
| - } |
| - } |
| - } |
| + }; |
| + }; |
| + }; |
| } |