| 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 a76a4c6e7ca747358d03d8bd69c2bf27823f9181..dcb58c425f3253a9db5dc88c38f1dc26607f2ced 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
|
| @@ -37,11 +37,8 @@ Polymer({
|
| * @private
|
| */
|
| getTooltip_: function(type, pref) {
|
| - if (type == CrPolicyIndicatorType.RECOMMENDED) {
|
| - if (pref && pref.value == pref.recommendedValue)
|
| - return this.i18n_('controlledSettingRecommendedMatches');
|
| - return this.i18n_('controlledSettingRecommendedDiffers');
|
| - }
|
| - return this.getPolicyIndicatorTooltip(type, pref.controlledByName || '');
|
| + var matches = pref && pref.value == pref.recommendedValue;
|
| + return this.getPolicyIndicatorTooltip(
|
| + type, pref.controlledByName || '', matches);
|
| }
|
| });
|
|
|