diff options
Diffstat (limited to 'chrome/browser/resources/ntp4/apps_page.js')
-rw-r--r-- | chrome/browser/resources/ntp4/apps_page.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/resources/ntp4/apps_page.js b/chrome/browser/resources/ntp4/apps_page.js index 9611b74..022b650 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', |