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) { |