Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(552)

Unified Diff: ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.js

Issue 2479973002: MD Settings: clarify "controlled by" logic (Closed)
Patch Set: merge Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 4084ab2c4b913514fd00bdb675f0f4e537c17f81..ec6fb5bd94a6d79d2b1afbeedccf8248f7163027 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
@@ -35,7 +35,7 @@ Polymer({
indicatorType: {
type: String,
value: CrPolicyIndicatorType.NONE,
- computed: 'getIndicatorType(pref.policySource, pref.policyEnforcement)',
+ computed: 'getIndicatorType(pref.controlledBy, pref.enforcement)',
},
},
@@ -51,7 +51,7 @@ Polymer({
return this.i18n_('controlledSettingRecommendedMatches');
return this.i18n_('controlledSettingRecommendedDiffers');
}
- var name = pref ? pref.policySourceName : controllingUser;
+ var name = pref ? pref.controlledByName : controllingUser;
return this.getPolicyIndicatorTooltip(type, name);
}
});

Powered by Google App Engine
This is Rietveld 408576698