| 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 variations; | 9 package variations; |
| 10 | 10 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 PHONE = 1; | 199 PHONE = 1; |
| 200 // Tablet-based mobile Chrome, e.g. an Android tablet or iPad. | 200 // Tablet-based mobile Chrome, e.g. an Android tablet or iPad. |
| 201 TABLET = 2; | 201 TABLET = 2; |
| 202 // ChromeOS running in single-app Kiosk mode. | 202 // ChromeOS running in single-app Kiosk mode. |
| 203 KIOSK = 3; | 203 KIOSK = 3; |
| 204 } | 204 } |
| 205 | 205 |
| 206 // Filtering criteria specifying whether this study is applicable to a given | 206 // Filtering criteria specifying whether this study is applicable to a given |
| 207 // Chrome instance. | 207 // Chrome instance. |
| 208 // | 208 // |
| 209 // Next tag: 15 | 209 // Next tag: 16 |
| 210 message Filter { | 210 message Filter { |
| 211 // The start date of the study in Unix time format. (Seconds since midnight | 211 // The start date of the study in Unix time format. (Seconds since midnight |
| 212 // January 1, 1970 UTC). See: http://en.wikipedia.org/wiki/Unix_time | 212 // January 1, 1970 UTC). See: http://en.wikipedia.org/wiki/Unix_time |
| 213 // Ex: 1330893974 (corresponds to 2012-03-04 20:46:14Z) | 213 // Ex: 1330893974 (corresponds to 2012-03-04 20:46:14Z) |
| 214 optional int64 start_date = 1; | 214 optional int64 start_date = 1; |
| 215 | 215 |
| 216 // The end date of the study in Unix time format. (Seconds since midnight | 216 // The end date of the study in Unix time format. (Seconds since midnight |
| 217 // January 1, 1970 UTC). See: http://en.wikipedia.org/wiki/Unix_time | 217 // January 1, 1970 UTC). See: http://en.wikipedia.org/wiki/Unix_time |
| 218 // Ex: 1330893974 (corresponds to 2012-03-04 20:46:14Z) | 218 // Ex: 1330893974 (corresponds to 2012-03-04 20:46:14Z) |
| 219 // Mutually exclusive with expiry_date. The difference between end_date and | 219 // Mutually exclusive with expiry_date. The difference between end_date and |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 // |exclude_country| is specified. Mutually exclusive with | 293 // |exclude_country| is specified. Mutually exclusive with |
| 294 // |exclude_country|. | 294 // |exclude_country|. |
| 295 // Ex: ["in", "us"] | 295 // Ex: ["in", "us"] |
| 296 repeated string country = 10; | 296 repeated string country = 10; |
| 297 | 297 |
| 298 // List of lowercase ISO 3166-1 alpha-2 country codes that will be excluded | 298 // List of lowercase ISO 3166-1 alpha-2 country codes that will be excluded |
| 299 // from this study. If omitted, the study applies to all countries unless | 299 // from this study. If omitted, the study applies to all countries unless |
| 300 // |country| is specified. Mutually exclusive with |country|. | 300 // |country| is specified. Mutually exclusive with |country|. |
| 301 // Ex: ["in", "us"] | 301 // Ex: ["in", "us"] |
| 302 repeated string exclude_country = 11; | 302 repeated string exclude_country = 11; |
| 303 |
| 304 // Specifies whether the config should apply to low-end devices only. This |
| 305 // is currently only supported on Android. |
| 306 optional bool is_low_end_device = 15; |
| 303 } | 307 } |
| 304 | 308 |
| 305 // Filtering criteria for this study. A study that is filtered out for a given | 309 // Filtering criteria for this study. A study that is filtered out for a given |
| 306 // client is equivalent to that study not being sent at all. | 310 // client is equivalent to that study not being sent at all. |
| 307 optional Filter filter = 10; | 311 optional Filter filter = 10; |
| 308 | 312 |
| 309 // Randomization seed to be used when |consistency| is set to PERMANENT. If | 313 // Randomization seed to be used when |consistency| is set to PERMANENT. If |
| 310 // not specified, randomization will be done using the trial name. | 314 // not specified, randomization will be done using the trial name. |
| 311 optional uint32 randomization_seed = 11; | 315 optional uint32 randomization_seed = 11; |
| 312 | 316 |
| 313 // Specifies whether the study starts as active initially, or whether it | 317 // Specifies whether the study starts as active initially, or whether it |
| 314 // requires the client to query its state before it is marked as active. | 318 // requires the client to query its state before it is marked as active. |
| 315 enum ActivationType { | 319 enum ActivationType { |
| 316 // The study will be activated when its state is queried by the client. | 320 // The study will be activated when its state is queried by the client. |
| 317 // This is recommended for most studies that include client code. | 321 // This is recommended for most studies that include client code. |
| 318 ACTIVATION_EXPLICIT = 0; | 322 ACTIVATION_EXPLICIT = 0; |
| 319 // The study will be automatically activated when it is created. This | 323 // The study will be automatically activated when it is created. This |
| 320 // is recommended for studies that do not have any client logic. | 324 // is recommended for studies that do not have any client logic. |
| 321 ACTIVATION_AUTO = 1; | 325 ACTIVATION_AUTO = 1; |
| 322 } | 326 } |
| 323 | 327 |
| 324 // Activation type for this study. Defaults to ACTIVATION_EXPLICIT if omitted. | 328 // Activation type for this study. Defaults to ACTIVATION_EXPLICIT if omitted. |
| 325 optional ActivationType activation_type = 12; | 329 optional ActivationType activation_type = 12; |
| 326 } | 330 } |
| OLD | NEW |