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

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

Issue 10141005: switch ntp to jstemplate v2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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/suggestions_page.js
diff --git a/chrome/browser/resources/ntp4/suggestions_page.js b/chrome/browser/resources/ntp4/suggestions_page.js
index eefd8a79b2b1087e2c951a7c0243c29454ae53c5..cc5a5d4174c838cb5d686cc06904e466c64496d5 100644
--- a/chrome/browser/resources/ntp4/suggestions_page.js
+++ b/chrome/browser/resources/ntp4/suggestions_page.js
@@ -73,7 +73,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;
@@ -184,18 +184,19 @@ cr.define('ntp', function() {
var undo = {
action: doUndo,
- text: templateData.undothumbnailremove,
+ text: loadTimeData.getString('undothumbnailremove'),
};
var undoAll = {
action: function() {
chrome.send('clearSuggestionsURLsBlacklist');
},
- 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