| Index: chrome/browser/resources/ntp4/apps_page.js
|
| diff --git a/chrome/browser/resources/ntp4/apps_page.js b/chrome/browser/resources/ntp4/apps_page.js
|
| index 24a58a7554af0b87dfa81ba8324e06c20cef43a3..d7374c48f783c3635c9b30f1d2ff85df41a3adbb 100644
|
| --- a/chrome/browser/resources/ntp4/apps_page.js
|
| +++ b/chrome/browser/resources/ntp4/apps_page.js
|
| @@ -231,12 +231,24 @@ cr.define('ntp4', function() {
|
| this.appsPromoHide_ =
|
| this.appsPromoExtras_.querySelector('.apps-promo-hide');
|
|
|
| + this.appsPromoHide_.addEventListener('click',
|
| + this.onHidePromoClicked_.bind(this));
|
| +
|
| this.appendChild(this.appsPromoExtras_);
|
| this.appsPromoExtras_.hidden = false;
|
| // TODO(estade): A ping url needs to be set for the app icon.
|
| },
|
|
|
| /**
|
| + * Handles when the "No, thanks" promo link is clicked.
|
| + * @private
|
| + */
|
| + onHidePromoClicked_: function(e) {
|
| + chrome.send('hideAppsPromo');
|
| + this.setAppsPromoData(null);
|
| + },
|
| +
|
| + /**
|
| * Sets the apps promo appearance. If |data| is null, there is no promo. If
|
| * |data| is non-null, it contains strings to be shown for the promo. The
|
| * promo is only shown when the webstore app icon is alone on a page.
|
|
|