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

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

Issue 17496005: Add a private API method metricsPrivate.getFieldTrial(), which returns (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comment. Created 7 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
Index: chrome/common/extensions/api/metrics_private.json
diff --git a/chrome/common/extensions/api/metrics_private.json b/chrome/common/extensions/api/metrics_private.json
index 2e86f889b9ffdecab3568d7816e042cc2c943dbb..7b4f7b1be199ffa486793b064b8cf3ac5bf60303 100644
--- a/chrome/common/extensions/api/metrics_private.json
+++ b/chrome/common/extensions/api/metrics_private.json
@@ -41,6 +41,22 @@
]
},
{
+ "name": "getFieldTrial",
+ "description": "Returns the group name chosen for the named trial, or the empty string if the trial does not exist or is not enabled.",
+ "type": "function",
+ "parameters": [
+ {"name": "name", "type": "string"},
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": "false",
+ "parameters": [
+ { "name": "group", "type": "string" }
+ ]
+ }
+ ]
+ },
+ {
"name": "recordUserAction",
"type": "function",
"description": "Records an action performed by the user.",
« no previous file with comments | « chrome/browser/extensions/extension_function_histogram_value.h ('k') | chrome/test/data/extensions/api_test/metrics/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698