Chromium Code Reviews| Index: ui/webui/resources/cr_elements/policy/cr_policy_network_indicator.js |
| diff --git a/ui/webui/resources/cr_elements/policy/cr_policy_network_indicator.js b/ui/webui/resources/cr_elements/policy/cr_policy_network_indicator.js |
| index d3ca5f4dcaaf0a2b67f9585815db13e9cb744cda..bc3cabe6129bda722bf4e0b6ea53874d61672bbc 100644 |
| --- a/ui/webui/resources/cr_elements/policy/cr_policy_network_indicator.js |
| +++ b/ui/webui/resources/cr_elements/policy/cr_policy_network_indicator.js |
| @@ -77,9 +77,10 @@ Polymer({ |
| * @private |
| */ |
| getTooltip_: function(type, property, recommended) { |
| - if (type == CrPolicyIndicatorType.NONE || typeof property != 'object') |
|
Dan Beam
2016/11/29 05:25:34
wait, how could this possibly not be an object acc
stevenjb
2016/11/30 22:58:19
Oh, it can't, I should have realized that. This pr
|
| + if (type == CrPolicyIndicatorType.NONE) |
| return ''; |
| - if (type == CrPolicyIndicatorType.RECOMMENDED) { |
| + if (type == CrPolicyIndicatorType.RECOMMENDED && |
| + typeof property == 'object') { |
| var value = property.Active; |
| if (value == undefined && property.Effective) |
| value = property[property.Effective]; |