Chromium Code Reviews| Index: chrome/browser/resources/settings/checkbox/checkbox.js |
| diff --git a/chrome/browser/resources/settings/checkbox/checkbox.js b/chrome/browser/resources/settings/checkbox/checkbox.js |
| index d4bdeb4fc378da44e7864b61c7b6c070f9f80383..39dd913db5fdd3f4f0b3f17039498286637c5b82 100644 |
| --- a/chrome/browser/resources/settings/checkbox/checkbox.js |
| +++ b/chrome/browser/resources/settings/checkbox/checkbox.js |
| @@ -57,6 +57,15 @@ Polymer({ |
| this.$.events.forward(this.$.checkbox, ['change']); |
| }, |
| + /** @override */ |
| + attached: function() { |
| + // HACK(dschuyler): paper-checkbox 1.0.6 will hide the label |
| + // if the content is empty. |
| + // TODO(dschuyler): rework settings checkbox to use content |
| + // rather than spans. |
| + this.$.checkbox.$.checkbox.$.checkboxLabel.hidden = false; |
| + }, |
|
stevenjb
2015/08/13 21:44:38
Is there any reason why this was done here instead
|
| + |
| /** @private */ |
| prefValueChanged_: function(prefValue) { |
| // prefValue is initially undefined when Polymer initializes pref. |