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

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

Issue 3538014: Implement layout of NTP apps promo. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: Created 10 years, 2 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
Index: chrome/browser/resources/new_new_tab.js
diff --git a/chrome/browser/resources/new_new_tab.js b/chrome/browser/resources/new_new_tab.js
index b7e292accaabe82acb0f1b501a652d6a1f1ce26e..768219d49724458e954624274906d58f4f601ceb 100644
--- a/chrome/browser/resources/new_new_tab.js
+++ b/chrome/browser/resources/new_new_tab.js
@@ -1095,3 +1095,11 @@ function maybeDoneLoading() {
function isDoneLoading() {
return !document.body.classList.contains('loading');
}
+
Bons 2010/10/06 20:04:06 remove extra line (I don't see any other instances
+
+// Initialize the apps promo if necessary.
+document.addEventListener('DOMContentLoaded', function() {
+ var promoText1 = $('apps-promo-text1');
+ promoText1.innerHTML = promoText1.textContent;
arv (Not doing code reviews) 2010/10/06 20:48:36 You can do this using the template system <p id="
+ promoText1.querySelector('a').href = localStrings.getString('web_store_url');
+});

Powered by Google App Engine
This is Rietveld 408576698