Index: chrome/common/extensions/api/settings_private.idl |
diff --git a/chrome/common/extensions/api/settings_private.idl b/chrome/common/extensions/api/settings_private.idl |
index 41e3b8faf2db5b9b4229dd5b709cf67cd13eb859..43dc19b6ac8fb17fef46501af1f42197d6e4ee1d 100644 |
--- a/chrome/common/extensions/api/settings_private.idl |
+++ b/chrome/common/extensions/api/settings_private.idl |
@@ -8,10 +8,16 @@ namespace settingsPrivate { |
// Type of a pref. |
enum PrefType { BOOLEAN, NUMBER, STRING, URL, LIST }; |
- // Policy source of a pref. |
- enum PolicySource { DEVICE, USER }; |
+ // Source of a restricted pref, either by policy or other source. |
+ enum PolicySource { |
+ DEVICE_POLICY, |
+ USER_POLICY, |
+ OWNER, |
+ PRIMARY_USER, |
+ EXTENSION |
+ }; |
- // Policy enforcement of a pref. |
+ // Enforcement type of a restricted pref. |
enum PolicyEnforcement { ENFORCED, RECOMMENDED }; |
dictionary PrefObject { |
@@ -31,6 +37,16 @@ namespace settingsPrivate { |
// The policy enforcement of the pref; must be specified if policySource is |
// also present. |
PolicyEnforcement? policyEnforcement; |
+ |
+ // The recommended value if policyEnforcement == RECOMMENDED. |
+ any? recommendedValue; |
+ |
+ // The extension Id if policySource == EXTENSION. |
michaelpg
2015/09/14 05:14:51
nit: ID
stevenjb
2015/09/14 23:05:31
Done.
|
+ DOMString? extensionId; |
+ |
+ // True if the pref is not controlled by a policy or user, but it can not be |
michaelpg
2015/09/14 05:14:51
opt nit: cannot
stevenjb
2015/09/14 23:05:31
Acknowledged.
|
+ // modified (pref->IsUserModifiable() is false). Defaults to false. |
+ boolean? readOnly; |
}; |
callback OnPrefSetCallback = void (boolean success); |