| 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 16dae611e68ae8b8d6cd3af25ddbc4814bd36189..da0e6396524b77889091063da0ae88dbc1d03f4a 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
|
| @@ -20,16 +20,16 @@ Polymer({
|
| property: {type: Object, observer: 'propertyChanged_'},
|
|
|
| /**
|
| - * Which indicator type to show (or NONE).
|
| - * @type {!CrPolicyIndicatorType}
|
| - */
|
| - indicatorType: {type: String, value: CrPolicyIndicatorType.NONE},
|
| -
|
| - /**
|
| * Recommended value for non enforced properties.
|
| * @private {!CrOnc.NetworkPropertyType|undefined}
|
| */
|
| recommended_: Object,
|
| +
|
| + /** @override */
|
| + indicatorTooltip: {
|
| + type: String,
|
| + computed: 'getNetworkIndicatorTooltip_(indicatorType)',
|
| + },
|
| },
|
|
|
| /**
|
| @@ -71,10 +71,11 @@ Polymer({
|
| },
|
|
|
| /**
|
| + * @param {CrPolicyIndicatorType} indicatorType
|
| * @return {string} The tooltip text for |type|.
|
| * @private
|
| */
|
| - getTooltip_: function() {
|
| + getNetworkIndicatorTooltip_: function(indicatorType) {
|
| var matches;
|
| if (this.indicatorType == CrPolicyIndicatorType.RECOMMENDED &&
|
| this.property) {
|
| @@ -83,6 +84,6 @@ Polymer({
|
| value = this.property[this.property.Effective];
|
| matches = value == this.recommended_;
|
| }
|
| - return this.getPolicyIndicatorTooltip(this.indicatorType, '', matches);
|
| + return this.getIndicatorTooltip(this.indicatorType, '', matches);
|
| }
|
| });
|
|
|