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

Side by Side Diff: chrome/browser/resources/settings/policy_controllable/policy_controllable.js

Issue 1358433003: MD Settings: Make PolicyControllable behavior for isPolicyControlled() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
OLDNEW
(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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698