Chromium Code Reviews| Index: ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js |
| diff --git a/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js b/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js |
| index fc13095d5eec9c815c1c54e713b4f6206a0a0f11..f752a7dd32e5e398a58de5062be607cea2189415 100644 |
| --- a/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js |
| +++ b/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js |
| @@ -15,6 +15,8 @@ Polymer({ |
| is: 'cr-dialog', |
| extends: 'dialog', |
| + behaviors: [I18nBehavior], |
|
tommycli
2016/10/25 18:13:50
hopefully this is unneeded per the previous commen
jdufault
2016/10/26 22:38:36
It's needed :(. I could remove it by calling loadT
|
| + |
| /** @override */ |
| created: function() { |
| // If the active history entry changes (i.e. user clicks back button), |
| @@ -42,4 +44,8 @@ Polymer({ |
| getCloseButton: function() { |
| return this.$.close; |
| }, |
| + |
| + getCloseA11yText_: function() { |
| + return this.i18n('close'); |
| + } |
| }); |