Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace": "metricsPrivate", | 7 "namespace": "metricsPrivate", |
| 8 "nodoc": true, | 8 "nodoc": true, |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 34 "name": "callback", | 34 "name": "callback", |
| 35 "type": "function", | 35 "type": "function", |
| 36 "optional": "false", | 36 "optional": "false", |
| 37 "parameters": [ | 37 "parameters": [ |
| 38 { "name": "is_enabled", "type": "boolean" } | 38 { "name": "is_enabled", "type": "boolean" } |
| 39 ] | 39 ] |
| 40 } | 40 } |
| 41 ] | 41 ] |
| 42 }, | 42 }, |
| 43 { | 43 { |
| 44 "name": "getFieldTrial", | |
| 45 "description": "Returns the group name chosen for the named trial, or th e empty string if the trial does not exist.", | |
|
Matt Perry
2013/06/21 22:00:19
nit: it's unclear to me whether "field trial exist
Oleg Eterevsky
2013/06/22 19:53:08
Added "or is not enabled".
| |
| 46 "type": "function", | |
| 47 "parameters": [ | |
| 48 {"name": "name", "type": "string"}, | |
| 49 { | |
| 50 "name": "callback", | |
| 51 "type": "function", | |
| 52 "optional": "false", | |
| 53 "parameters": [ | |
| 54 { "name": "group", "type": "string" } | |
| 55 ] | |
| 56 } | |
| 57 ] | |
| 58 }, | |
| 59 { | |
| 44 "name": "recordUserAction", | 60 "name": "recordUserAction", |
| 45 "type": "function", | 61 "type": "function", |
| 46 "description": "Records an action performed by the user.", | 62 "description": "Records an action performed by the user.", |
| 47 "parameters": [ | 63 "parameters": [ |
| 48 {"name": "name", "type": "string"} | 64 {"name": "name", "type": "string"} |
| 49 ] | 65 ] |
| 50 }, | 66 }, |
| 51 { | 67 { |
| 52 "name": "recordPercentage", | 68 "name": "recordPercentage", |
| 53 "type": "function", | 69 "type": "function", |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 "description": "Adds a value to the given metric.", | 133 "description": "Adds a value to the given metric.", |
| 118 "parameters": [ | 134 "parameters": [ |
| 119 {"name": "metric", "$ref": "MetricType"}, | 135 {"name": "metric", "$ref": "MetricType"}, |
| 120 {"name": "value", "type": "integer"} | 136 {"name": "value", "type": "integer"} |
| 121 ] | 137 ] |
| 122 } | 138 } |
| 123 ], | 139 ], |
| 124 "events": [] | 140 "events": [] |
| 125 } | 141 } |
| 126 ] | 142 ] |
| OLD | NEW |