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

Unified Diff: chrome/browser/resources/ntp4/apps_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/apps_page.js
diff --git a/chrome/browser/resources/ntp4/apps_page.js b/chrome/browser/resources/ntp4/apps_page.js
index 9611b7455699085af09620a5fcbf2117f4c4b2df..022b6501f4c7d10ca5826fe0258dac411285a5ce 100644
--- a/chrome/browser/resources/ntp4/apps_page.js
+++ b/chrome/browser/resources/ntp4/apps_page.js
@@ -5,8 +5,6 @@
cr.define('ntp', function() {
'use strict';
- var localStrings = new LocalStrings;
-
var APP_LAUNCH = {
// The histogram buckets (keep in sync with extension_constants.h).
NTP_APPS_MAXIMIZED: 0,
@@ -97,7 +95,7 @@ cr.define('ntp', function() {
this.menu.appendChild(button);
cr.ui.decorate(button, cr.ui.MenuItem);
if (textId)
- button.textContent = localStrings.getString(textId);
+ button.textContent = loadTimeData.getString(textId);
return button;
},
@@ -650,7 +648,7 @@ cr.define('ntp', function() {
initialize: function() {
this.classList.add('apps-page');
- if (templateData.appInstallHintEnabled) {
+ if (loadTimeData.getBoolean('appInstallHintEnabled')) {
this.appInstallHint_ = $('app-install-hint-template').cloneNode(true);
this.appInstallHint_.addEventListener('click', function(e) {
chrome.send('recordAppLaunchByURL',

Powered by Google App Engine
This is Rietveld 408576698