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

Unified Diff: chrome/browser/resources/new_new_tab.js

Issue 385135: Tweaks for promo messages on NTP (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/new_new_tab.html ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/new_new_tab.js
===================================================================
--- chrome/browser/resources/new_new_tab.js (revision 32147)
+++ chrome/browser/resources/new_new_tab.js (working copy)
@@ -1593,10 +1593,9 @@
updateAttribution();
-/* Close the promo notices when close button on the promo-line is clicked. */
+// Closes the promo line when close button is clicked.
$('promo-close').onclick = function (e) {
- $('promo-line').style.display = 'none';
- $('bottom-right-promo').style.display = 'none';
- chrome.send('stopPromoMessages');
+ $('footer').className = 'hide-footer';
+ chrome.send('stopPromoLineMessage');
e.preventDefault();
};
« no previous file with comments | « chrome/browser/resources/new_new_tab.html ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698