| Index: chrome/browser/resources/new_tab.js
|
| diff --git a/chrome/browser/resources/new_tab.js b/chrome/browser/resources/new_tab.js
|
| index 06f05818e20cd87c6f248d16fb8f45f409f0c099..148dcb1686110f6e4cf9d729ebf359d8bab860e6 100644
|
| --- a/chrome/browser/resources/new_tab.js
|
| +++ b/chrome/browser/resources/new_tab.js
|
| @@ -1467,10 +1467,12 @@ function isDoneLoading() {
|
| return !document.body.classList.contains('loading');
|
| }
|
|
|
| -// Initialize the listener for the "hide this" link on the apps promo. We do
|
| -// this outside of getAppsCallback because it only needs to be done once per
|
| -// NTP load.
|
| document.addEventListener('DOMContentLoaded', function() {
|
| + cr.enablePlatformSpecificCSSRules();
|
| +
|
| + // Initialize the listener for the "hide this" link on the apps promo. We do
|
| + // this outside of getAppsCallback because it only needs to be done once per
|
| + // NTP load.
|
| $('apps-promo-hide').addEventListener('click', function() {
|
| chrome.send('hideAppsPromo', []);
|
| document.documentElement.classList.remove('apps-promo-visible');
|
|
|