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

Unified Diff: chrome/common/extensions/api/settings_private.idl

Issue 1310373008: Add cr_policy_indicator for settings controls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md_settings_compiled_resources_3
Patch Set: Feedback 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 side-by-side diff with in-line comments
Download patch
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..161e1bc4f507b054b935bce3c560f339712a2e0b 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.
+ DOMString? extensionId;
+
+ // True if the pref is not controlled by a policy or user, but it can not be
+ // modified (pref->IsUserModifiable() is false). Defaults to false.
+ boolean? readOnly;
};
callback OnPrefSetCallback = void (boolean success);

Powered by Google App Engine
This is Rietveld 408576698