Chromium Code Reviews| 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..54f649a217402e1887cdd691bf8389f2566af1c2 100644 |
| --- a/chrome/browser/resources/quota_internals/event_handler.js |
| +++ b/chrome/browser/resources/quota_internals/event_handler.js |
| @@ -42,8 +42,8 @@ function copyAttributes_(source, destination) { |
| * @private |
| */ |
| function localize_(element) { |
|
Dan Beam
2014/09/23 00:13:28
nit: _ only goes at the end of private members, af
Evan Stade
2014/09/23 00:54:28
I don't really want to fix all the cases in this f
|
| - if (window.i18nTemplate && window.templateData) |
| - i18nTemplate.process(element, templateData); |
| + if (i18nTemplate && loadTimeData) |
|
Dan Beam
2014/09/23 00:13:29
why did you remove the window.?
Evan Stade
2014/09/23 00:54:28
was it serving a purpose? It's not used before loa
Dan Beam
2014/09/23 01:03:03
avoids ReferenceErrors
Evan Stade
2014/09/23 01:07:31
I didn't run into any of those. Are you saying all
Evan Stade
2014/09/23 01:30:00
Done.
Dan Beam
2014/09/23 01:36:29
just when checking for the existence of a global (
|
| + i18nTemplate.process(element, loadTimeData); |
| }; |
|
Dan Beam
2014/09/23 00:13:29
nit: }; -> }
Evan Stade
2014/09/23 00:54:28
Done.
|
| /** |
| @@ -518,7 +518,6 @@ function dump() { |
| function onLoad() { |
| cr.ui.decorate('tabbox', cr.ui.TabBox); |
| - localize_(document); |
| cr.quota.onAvailableSpaceUpdated.addEventListener('update', |
| handleAvailableSpace); |