| Index: chrome/browser/resources/help/help.js
|
| diff --git a/chrome/browser/resources/help/help.js b/chrome/browser/resources/help/help.js
|
| index ac3e93d67a95ddf85cc68603d8c525c3cb016643..9a898b833843d8b401b4c0ada5d84b7ed5404f87 100644
|
| --- a/chrome/browser/resources/help/help.js
|
| +++ b/chrome/browser/resources/help/help.js
|
| @@ -5,8 +5,6 @@
|
| <include src="../uber/uber_utils.js">
|
|
|
| cr.define('help', function() {
|
| - var localStrings = new LocalStrings();
|
| -
|
| /**
|
| * Encapsulated handling of the help page.
|
| */
|
| @@ -24,17 +22,18 @@ cr.define('help', function() {
|
| uber.onContentFrameLoaded();
|
|
|
| // Set the title.
|
| - var title = localStrings.getString('helpTitle');
|
| + var title = loadTimeData.getString('helpTitle');
|
| uber.invokeMethodOnParent('setTitle', {title: title});
|
|
|
| - $('product-license').innerHTML = localStrings.getString('productLicense');
|
| - if (cr.isChromeOS)
|
| + $('product-license').innerHTML = loadTimeData.getString('productLicense');
|
| + if (cr.isChromeOS) {
|
| $('product-os-license').innerHTML =
|
| - localStrings.getString('productOsLicense');
|
| + loadTimeData.getString('productOsLicense');
|
| + }
|
|
|
| var productTOS = $('product-tos');
|
| if (productTOS)
|
| - productTOS.innerHTML = localStrings.getString('productTOS');
|
| + productTOS.innerHTML = loadTimeData.getString('productTOS');
|
|
|
| $('get-help').onclick = chrome.send.bind(chrome, 'openHelpPage');
|
| $('report-issue').onclick =
|
| @@ -71,8 +70,8 @@ cr.define('help', function() {
|
| moreInfo.style.height = visible ? '' : moreInfo.scrollHeight + 'px';
|
| moreInfo.addEventListener('webkitTransitionEnd', function(event) {
|
| $('more-info-expander').textContent = visible ?
|
| - localStrings.getString('showMoreInfo') :
|
| - localStrings.getString('hideMoreInfo');
|
| + loadTimeData.getString('showMoreInfo') :
|
| + loadTimeData.getString('hideMoreInfo');
|
| });
|
| },
|
|
|
| @@ -99,17 +98,17 @@ cr.define('help', function() {
|
| if (status == 'checking') {
|
| this.setUpdateImage_('working');
|
| $('update-status').innerHTML =
|
| - localStrings.getString('updateCheckStarted');
|
| + loadTimeData.getString('updateCheckStarted');
|
| } else if (status == 'updating') {
|
| this.setUpdateImage_('working');
|
| - $('update-status').innerHTML = localStrings.getString('updating');
|
| + $('update-status').innerHTML = loadTimeData.getString('updating');
|
| } else if (status == 'nearly_updated') {
|
| this.setUpdateImage_('up-to-date');
|
| $('update-status').innerHTML =
|
| - localStrings.getString('updateAlmostDone');
|
| + loadTimeData.getString('updateAlmostDone');
|
| } else if (status == 'updated') {
|
| this.setUpdateImage_('up-to-date');
|
| - $('update-status').innerHTML = localStrings.getString('upToDate');
|
| + $('update-status').innerHTML = loadTimeData.getString('upToDate');
|
| } else if (status == 'failed') {
|
| this.setUpdateImage_('failed');
|
| $('update-status').innerHTML = message;
|
|
|