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

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: . 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
« chrome/chrome_browser.gypi ('K') | « 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..e7185c63a46ca683da568bb62980856161e59dcc 100644
--- a/chrome/common/extensions/api/managed_mode_private.json
+++ b/chrome/common/extensions/api/managed_mode_private.json
@@ -55,6 +55,55 @@
]
}
]
+ },
+ {
+ "name": "setPolicy",
+ "type": "function",
+ "description": "Sets a policy.",
+ "parameters": [
+ {
+ "name": "key",
+ "type": "string",
+ "description": "Policy key"
Joao da Silva 2012/06/06 16:36:38 End the description with a "." for consistency?
Bernhard Bauer 2012/06/08 10:06:44 Done.
+ },
+ {
+ "name": "value",
+ "type": "any",
+ "description": "Policy value."
+ },
+ {
+ "type": "function",
+ "name": "callback",
+ "optional": true,
+ "parameters": [
+ ]
Joao da Silva 2012/06/06 16:36:38 Remove the newline? ("parameters": [])
Bernhard Bauer 2012/06/08 10:06:44 Done.
+ }
+ ]
+ },
+ {
+ "name": "getPolicy",
+ "type": "function",
+ "description": "Gets a policy value.",
+ "parameters": [
+ {
+ "name": "key",
+ "type": "string",
+ "description": "Policy key"
Joao da Silva 2012/06/06 16:36:38 Same about the "."
Bernhard Bauer 2012/06/08 10:06:44 Done.
+ },
+ {
+ "type": "function",
+ "name": "callback",
+ "optional": true,
+ "parameters": [
+ {
+ "name": "value",
+ "type": "any",
+ "description": "Policy value or null if no policy is set.",
+ "optional": true
+ }
+ ]
+ }
+ ]
}
],
"events": [
« chrome/chrome_browser.gypi ('K') | « chrome/common/chrome_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698