| Index: ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.js
|
| diff --git a/ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.js b/ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.js
|
| index dcb58c425f3253a9db5dc88c38f1dc26607f2ced..5526eb54d0eaef62e5056b4c1d63994bf6a4478b 100644
|
| --- a/ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.js
|
| +++ b/ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.js
|
| @@ -40,5 +40,12 @@ Polymer({
|
| var matches = pref && pref.value == pref.recommendedValue;
|
| return this.getPolicyIndicatorTooltip(
|
| type, pref.controlledByName || '', matches);
|
| - }
|
| + },
|
| +
|
| + /**
|
| + * @return {boolean} Whether the policy indicator is on. Useful for testing.
|
| + */
|
| + isActive: function() {
|
| + return this.isIndicatorVisible(this.indicatorType);
|
| + },
|
| });
|
|
|