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

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

Issue 2728683004: [MD settings] controlled by extension icon on default font size (Closed)
Patch Set: closure Created 3 years, 10 months 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_behavior.js
diff --git a/ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js b/ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js
index d153e0a6c12efba2e7af97f241d123a3c0e61d77..4a16d33f7bd9cbc7cc89df395d908d30f864eba5 100644
--- a/ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js
+++ b/ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.js
@@ -24,6 +24,9 @@ var CrPolicyPrefBehavior = {
* @return {boolean} True if |this.pref| is controlled by an enforced policy.
*/
isPrefEnforced: function() {
+ if (!this.pref) {
+ return false;
+ }
if (this.ignoreExtensions &&
this.pref.controlledBy ==
chrome.settingsPrivate.ControlledBy.EXTENSION) {

Powered by Google App Engine
This is Rietveld 408576698