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

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

Issue 10141005: switch ntp to jstemplate v2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rip out broken customlogo code Created 8 years, 8 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/ntp4/most_visited_page.js
diff --git a/chrome/browser/resources/ntp4/most_visited_page.js b/chrome/browser/resources/ntp4/most_visited_page.js
index 008e490c346772032778bc55f26553255b7f6783..328354929840445835bc46e3abc5c64f3e9af2d6 100644
--- a/chrome/browser/resources/ntp4/most_visited_page.js
+++ b/chrome/browser/resources/ntp4/most_visited_page.js
@@ -63,7 +63,7 @@ cr.define('ntp', function() {
'<span class="title"></span>';
this.querySelector('.close-button').title =
- templateData.removethumbnailtooltip;
+ loadTimeData.getString('removethumbnailtooltip');
this.tabIndex = -1;
this.data_ = null;
@@ -175,18 +175,19 @@ cr.define('ntp', function() {
var undo = {
action: doUndo,
- text: templateData.undothumbnailremove,
+ text: loadTimeData.getString('undothumbnailremove'),
};
var undoAll = {
action: function() {
chrome.send('clearMostVisitedURLsBlacklist');
},
- text: templateData.restoreThumbnailsShort,
+ text: loadTimeData.getString('restoreThumbnailsShort'),
};
- ntp.showNotification(templateData.thumbnailremovednotification,
- [undo, undoAll]);
+ ntp.showNotification(
+ loadTimeData.getString('thumbnailremovednotification'),
+ [undo, undoAll]);
},
/**

Powered by Google App Engine
This is Rietveld 408576698