Index: ui/webui/resources/cr_elements/policy/cr_policy_network_behavior.js |
diff --git a/ui/webui/resources/cr_elements/policy/cr_policy_network_behavior.js b/ui/webui/resources/cr_elements/policy/cr_policy_network_behavior.js |
index ec3f38e341eb957cc73e2f48b33ab9e355dd10dd..32b27beaead50e0f337b6a947a6b7f080e473be2 100644 |
--- a/ui/webui/resources/cr_elements/policy/cr_policy_network_behavior.js |
+++ b/ui/webui/resources/cr_elements/policy/cr_policy_network_behavior.js |
@@ -31,6 +31,26 @@ var CrPolicyNetworkBehavior = { |
/** |
* @param {!CrOnc.ManagedProperty|undefined} property |
+ * @return {boolean} True if the network property is controlled by an |
+ * extension. |
+ */ |
+ isExtensionControlled: function(property) { |
+ return typeof property == 'object' && |
+ property.Effective == 'ActiveExtension'; |
+ }, |
+ |
+ /** |
+ * @param {!CrOnc.ManagedProperty|undefined} property |
+ * @return {boolean} True if the network property is controlled by a policy |
+ * or an extension. |
+ */ |
+ isControlled: function(property) { |
+ return this.isNetworkPolicyControlled(property) || |
+ this.isExtensionControlled(property); |
+ }, |
+ |
+ /** |
+ * @param {!CrOnc.ManagedProperty|undefined} property |
* @return {boolean} True if the network property is enforced by a policy. |
*/ |
isNetworkPolicyEnforced: function(property) { |