summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions
diff options
context:
space:
mode:
authorrogerta@google.com <rogerta@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-01 01:18:06 +0000
committerrogerta@google.com <rogerta@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-01 01:18:06 +0000
commit17d40f00b7d7a078649fb142961f612c29553ec0 (patch)
tree4429a193fa5064a9c4a9784429d86cff01b0ed69 /chrome/common/extensions
parent05bebf1bc8d96ca3262cd3015af5c8178d3e7f84 (diff)
downloadchromium_src-17d40f00b7d7a078649fb142961f612c29553ec0.zip
chromium_src-17d40f00b7d7a078649fb142961f612c29553ec0.tar.gz
chromium_src-17d40f00b7d7a078649fb142961f612c29553ec0.tar.bz2
**Reapply change that caused build break in chromeos/arm**
Add support for RLZ chrome extension api. BUG=None TEST=See unit tests as part of this CL. Review URL: http://codereview.chromium.org/2864024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51326 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions')
-rw-r--r--chrome/common/extensions/api/extension_api.json36
1 files changed, 36 insertions, 0 deletions
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index a721507..ca7ed2a 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -2929,6 +2929,42 @@
]
},
{
+ "namespace": "experimental.rlz",
+ "nodoc": true,
+ "types": [],
+ "functions": [
+ {
+ "name": "recordProductEvent",
+ "type": "function",
+ "description": "Records an RLZ event for a given product's access point.",
+ "parameters": [
+ {"name": "product", "type": "string", "minLength": 1, "maxLength": 1},
+ {"name": "accessPoint", "type": "string", "minLength": 1, "maxLength": 2},
+ {"name": "event", "type": "string", "enum": ["install", "set-to-google", "first-search", "activate"]}
+ ]
+ },
+ {
+ "name": "getAccessPointRlz",
+ "type": "function",
+ "description": "Gets the RLZ string to be used when accessing a Google property through the given access point.",
+ "parameters": [
+ {"name": "accessPoint", "type": "string", "minLength": 1, "maxLength": 2},
+ {"name": "callback", "type": "function", "parameters": [{"name": "rlz", "type": "string"}]}
+ ]
+ },
+ {
+ "name": "clearProductState",
+ "type": "function",
+ "description": "Clears all product-specific RLZ state from the machine, as well as clearing all events for the specified access points.",
+ "parameters": [
+ {"name": "product", "type": "string", "minLength": 1, "maxLength": 1},
+ {"name": "accessPoints", "type": "array", "items": {"type": "string", "minLength": 1, "maxLength": 2}, "minItems": 1}
+ ]
+ }
+ ],
+ "events": []
+ },
+ {
"namespace": "test",
"nodoc": true,
"types": [],