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

Unified Diff: chrome/browser/resources/quota_internals/event_handler.js

Issue 586953002: get rid of almost all old fashioned i18nTemplates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: window dot Created 6 years, 3 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/quota_internals/event_handler.js
diff --git a/chrome/browser/resources/quota_internals/event_handler.js b/chrome/browser/resources/quota_internals/event_handler.js
index c5ba7a44ffdca9914bb52f8aad9f65a21c18d38d..d92926fbb8a3645a2eab84756f58e06ab09f66ae 100644
--- a/chrome/browser/resources/quota_internals/event_handler.js
+++ b/chrome/browser/resources/quota_internals/event_handler.js
@@ -34,7 +34,7 @@ function copyAttributes_(source, destination) {
for (var i in source)
destination[i] = source[i];
return destination;
-};
+}
/**
* Apply localization to |element| with i18n_template.js if available.
@@ -42,9 +42,9 @@ function copyAttributes_(source, destination) {
* @private
*/
function localize_(element) {
- if (window.i18nTemplate && window.templateData)
- i18nTemplate.process(element, templateData);
-};
+ if (window.i18nTemplate && window.loadTimeData)
+ i18nTemplate.process(element, loadTimeData);
+}
/**
* Returns 'N/A' (Not Available) text if |value| is undefined.
@@ -518,7 +518,6 @@ function dump() {
function onLoad() {
cr.ui.decorate('tabbox', cr.ui.TabBox);
- localize_(document);
cr.quota.onAvailableSpaceUpdated.addEventListener('update',
handleAvailableSpace);
« no previous file with comments | « chrome/browser/resources/chromeos/image_burner.js ('k') | chrome/browser/resources/quota_internals/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698