Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2588)

Unified Diff: chrome/browser/resources/ntp4/apps_page.js

Issue 7662001: ntp4: remove apps promo 'no, thanks' link. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rbyers review Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/ntp4/apps_page.css ('k') | chrome/browser/resources/ntp4/new_tab.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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');
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;
},
« no previous file with comments | « chrome/browser/resources/ntp4/apps_page.css ('k') | chrome/browser/resources/ntp4/new_tab.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698