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

Unified Diff: chrome/common/extensions/api/managed_mode_private.json

Issue 10510006: Add ManagedModePolicyProvider and extension API to get and set policies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 6 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
« no previous file with comments | « chrome/common/chrome_constants.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/managed_mode_private.json
diff --git a/chrome/common/extensions/api/managed_mode_private.json b/chrome/common/extensions/api/managed_mode_private.json
index e02dcfb76928183bc3734ef7472e6dcf8954a856..8c5a63b311e91eb27a341db28a032b535d90597d 100644
--- a/chrome/common/extensions/api/managed_mode_private.json
+++ b/chrome/common/extensions/api/managed_mode_private.json
@@ -18,7 +18,7 @@
"optional": true,
"parameters": [
{
- "name": "result",
+ "name": "result",
"type": "object",
"description": "The result of the attempt to enter managed mode.",
"properties": {
@@ -55,6 +55,54 @@
]
}
]
+ },
+ {
+ "name": "setPolicy",
+ "type": "function",
+ "description": "Sets a policy.",
+ "parameters": [
+ {
+ "name": "key",
+ "type": "string",
+ "description": "Policy key."
+ },
+ {
+ "name": "value",
+ "type": "any",
+ "description": "Policy value."
+ },
+ {
+ "type": "function",
+ "name": "callback",
+ "optional": true,
+ "parameters": []
+ }
+ ]
+ },
+ {
+ "name": "getPolicy",
+ "type": "function",
+ "description": "Gets a policy value.",
+ "parameters": [
+ {
+ "name": "key",
+ "type": "string",
+ "description": "Policy key."
+ },
+ {
+ "type": "function",
+ "name": "callback",
+ "optional": true,
+ "parameters": [
+ {
+ "name": "value",
+ "type": "any",
+ "description": "Policy value or null if no policy is set.",
+ "optional": true
+ }
+ ]
+ }
+ ]
}
],
"events": [
@@ -76,4 +124,4 @@
}
]
}
-]
+]
« no previous file with comments | « chrome/common/chrome_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698