Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /** | |
| 2 * @fileoverview Behavior to determine whether a pref is controlled by policy. | |
| 3 */ | |
| 4 | |
| 5 /** @polymerBehavior */ | |
| 6 var PolicyControllable = { | |
| 7 /** | |
| 8 * @param {?chrome.settingsPrivate.PrefObject} pref | |
| 9 * @return {boolean} True if the pref is controlled by an enforced policy. | |
| 10 */ | |
| 11 isControlled: function(pref) { | |
|
stevenjb
2015/09/21 20:41:43
nit: isPolicyControlled ?
Dan Beam
2015/09/21 22:27:11
+1
michaelpg
2015/09/22 02:22:57
Done.
michaelpg
2015/09/22 02:22:57
Acknowledged.
| |
| 12 return !!pref && | |
| 13 pref.policyEnforcement == | |
| 14 chrome.settingsPrivate.PolicyEnforcement.ENFORCED; | |
| 15 }, | |
| 16 }; | |
| OLD | NEW |