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 syntax = "proto2"; | 5 syntax = "proto2"; |
6 | 6 |
7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
8 | 8 |
9 package chrome_variations; | 9 package chrome_variations; |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... | |
36 // Ex: PERMANENT | 36 // Ex: PERMANENT |
37 optional Consistency consistency = 7 [default = SESSION]; | 37 optional Consistency consistency = 7 [default = SESSION]; |
38 | 38 |
39 // Name of the experiment that gets the default experience. This experiment | 39 // Name of the experiment that gets the default experience. This experiment |
40 // must be included in the list below. | 40 // must be included in the list below. |
41 // Ex: "default" | 41 // Ex: "default" |
42 optional string default_experiment_name = 8; | 42 optional string default_experiment_name = 8; |
43 | 43 |
44 // An experiment within the study. | 44 // An experiment within the study. |
45 // | 45 // |
46 // Next tag: 9 | 46 // Next tag: 10 |
47 message Experiment { | 47 message Experiment { |
48 // A named parameter value for this experiment. | 48 // A named parameter value for this experiment. |
49 // | 49 // |
50 // Next tag: 3 | 50 // Next tag: 3 |
51 message Param { | 51 message Param { |
52 // The name of the parameter. | 52 // The name of the parameter. |
53 optional string name = 1; | 53 optional string name = 1; |
54 | 54 |
55 // The value of the parameter. | 55 // The value of the parameter. |
56 optional string value = 2; | 56 optional string value = 2; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
100 KILL_BEST_EFFORT = 2; | 100 KILL_BEST_EFFORT = 2; |
101 | 101 |
102 // This is a kill-switch group that should be killed with "critical" | 102 // This is a kill-switch group that should be killed with "critical" |
103 // priority. Depending on platform this may result in showing a | 103 // priority. Depending on platform this may result in showing a |
104 // non-dismissible restart prompt with a timer. This should only be used | 104 // non-dismissible restart prompt with a timer. This should only be used |
105 // in very serious emergency circumstances. The experiment must have a | 105 // in very serious emergency circumstances. The experiment must have a |
106 // probability_weight of 0. | 106 // probability_weight of 0. |
107 KILL_CRITICAL = 3; | 107 KILL_CRITICAL = 3; |
108 } | 108 } |
109 optional Type type = 7 [default = NORMAL]; | 109 optional Type type = 7 [default = NORMAL]; |
110 | |
111 // A UI string to override, and the new value to use. |name_hash| is the | |
112 // hash of the resource name to be overridden. | |
Alexei Svitkine (slow)
2014/07/17 13:43:31
Nit: The second sentence is redundant given there'
jwd
2014/07/18 20:10:29
Done.
| |
113 message OverrideUIString { | |
114 // The first 32 bits of the MD5 hash digest of the resource name to | |
115 // override. | |
116 // e.g. Hash("IDS_BOOKMARK_BAR_UNDO") | |
117 optional fixed32 name_hash = 1; | |
118 // The new value of the string being overridden. | |
Alexei Svitkine (slow)
2014/07/17 13:43:31
Add an empty line above this.
jwd
2014/07/18 20:10:29
Done.
| |
119 // e.g. "Undo" | |
120 optional string value = 2; | |
121 } | |
122 repeated OverrideUIString override_ui_string = 9; | |
110 } | 123 } |
111 | 124 |
112 // List of experiments in this study. This list should include the default / | 125 // List of experiments in this study. This list should include the default / |
113 // control experiment. | 126 // control experiment. |
114 // | 127 // |
115 // For example, to specify that 99% of users get the default behavior, while | 128 // For example, to specify that 99% of users get the default behavior, while |
116 // 0.5% of users get experience "A" and 0.5% of users get experience "B", | 129 // 0.5% of users get experience "A" and 0.5% of users get experience "B", |
117 // specify the values below. | 130 // specify the values below. |
118 // Ex: { "default": 990, "A": 5, "B": 5 } | 131 // Ex: { "default": 990, "A": 5, "B": 5 } |
119 repeated Experiment experiment = 9; | 132 repeated Experiment experiment = 9; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
223 // This is recommended for most studies that include client code. | 236 // This is recommended for most studies that include client code. |
224 ACTIVATION_EXPLICIT = 0; | 237 ACTIVATION_EXPLICIT = 0; |
225 // The study will be automatically activated when it is created. This | 238 // The study will be automatically activated when it is created. This |
226 // is recommended for studies that do not have any client logic. | 239 // is recommended for studies that do not have any client logic. |
227 ACTIVATION_AUTO = 1; | 240 ACTIVATION_AUTO = 1; |
228 } | 241 } |
229 | 242 |
230 // Activation type for this study. Defaults to ACTIVATION_EXPLICIT if omitted. | 243 // Activation type for this study. Defaults to ACTIVATION_EXPLICIT if omitted. |
231 optional ActivationType activation_type = 12; | 244 optional ActivationType activation_type = 12; |
232 } | 245 } |
OLD | NEW |