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 message OverrideUIString { | |
112 optional fixed32 name_hash = 1; // e.g. Hash("IDS_BOOKMARK_BAR_FOLDER_NAM E") | |
Alexei Svitkine (slow)
2014/07/03 17:54:40
Nit: Wrapping. But also, add some comments about t
jwd
2014/07/07 15:52:20
Done.
| |
113 optional string value = 2; // e.g. "Bookmark Bar" | |
114 } | |
115 repeated OverrideUIString override_ui_string = 9; | |
110 } | 116 } |
111 | 117 |
112 // List of experiments in this study. This list should include the default / | 118 // List of experiments in this study. This list should include the default / |
113 // control experiment. | 119 // control experiment. |
114 // | 120 // |
115 // For example, to specify that 99% of users get the default behavior, while | 121 // 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", | 122 // 0.5% of users get experience "A" and 0.5% of users get experience "B", |
117 // specify the values below. | 123 // specify the values below. |
118 // Ex: { "default": 990, "A": 5, "B": 5 } | 124 // Ex: { "default": 990, "A": 5, "B": 5 } |
119 repeated Experiment experiment = 9; | 125 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. | 229 // This is recommended for most studies that include client code. |
224 ACTIVATION_EXPLICIT = 0; | 230 ACTIVATION_EXPLICIT = 0; |
225 // The study will be automatically activated when it is created. This | 231 // The study will be automatically activated when it is created. This |
226 // is recommended for studies that do not have any client logic. | 232 // is recommended for studies that do not have any client logic. |
227 ACTIVATION_AUTO = 1; | 233 ACTIVATION_AUTO = 1; |
228 } | 234 } |
229 | 235 |
230 // Activation type for this study. Defaults to ACTIVATION_EXPLICIT if omitted. | 236 // Activation type for this study. Defaults to ACTIVATION_EXPLICIT if omitted. |
231 optional ActivationType activation_type = 12; | 237 optional ActivationType activation_type = 12; |
232 } | 238 } |
OLD | NEW |