Chromium Code Reviews| 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 2edc48f209edb965c7db46142820ac7f5dd6977b..6b28c112e121d067a6e0c7266ca9d7f968577570 100644 |
| --- a/chrome/browser/resources/ntp4/apps_page.js |
| +++ b/chrome/browser/resources/ntp4/apps_page.js |
| @@ -243,30 +243,16 @@ cr.define('ntp4', function() { |
| this.appsPromoExtras_.querySelector('.apps-promo-heading'); |
| this.appsPromoLink_ = |
| this.appsPromoExtras_.querySelector('.apps-promo-link'); |
| - this.appsPromoHide_ = |
| - this.appsPromoExtras_.querySelector('.apps-promo-hide'); |
|
Rick Byers
2011/08/16 13:32:30
Remove the anchor from the template HTML as well
|
| this.appsPromoLogo_ = this.ownerDocument.createElement('img'); |
| this.appsPromoLogo_.className = 'apps-promo-logo'; |
| this.appImgContainer_.appendChild(this.appsPromoLogo_); |
| - this.appsPromoHide_.addEventListener('click', |
| - this.onHidePromoClicked_.bind(this)); |
| - |
| this.appendChild(this.appsPromoExtras_); |
| this.appsPromoExtras_.hidden = false; |
| }, |
| /** |
| - * 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. |
| @@ -283,7 +269,6 @@ cr.define('ntp4', function() { |
| this.appsPromoHeading_.textContent = data.promoHeader; |
| this.appsPromoLink_.href = data.promoLink; |
| this.appsPromoLink_.textContent = data.promoButton; |
| - this.appsPromoHide_.textContent = data.promoExpire; |
| this.appsPromoLogo_.src = data.promoLogo; |
| }, |