OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "components/variations/variations_switches.h" | 5 #include "components/variations/variations_switches.h" |
6 | 6 |
7 namespace variations { | 7 namespace variations { |
8 namespace switches { | 8 namespace switches { |
9 | 9 |
10 // Disable field trial tests configured in fieldtrial_testing_config.json. | 10 // Disable field trial tests configured in fieldtrial_testing_config.json. |
11 const char kDisableFieldTrialTestingConfig[] = "disable-field-trial-config"; | 11 const char kDisableFieldTrialTestingConfig[] = "disable-field-trial-config"; |
12 | 12 |
13 // Fakes the channel of the browser for purposes of Variations filtering. This | 13 // Fakes the channel of the browser for purposes of Variations filtering. This |
14 // is to be used for testing only. Possible values are "stable", "beta", "dev" | 14 // is to be used for testing only. Possible values are "stable", "beta", "dev" |
15 // and "canary". Note that this only applies if the browser's reported channel | 15 // and "canary". Note that this only applies if the browser's reported channel |
16 // is UNKNOWN. | 16 // is UNKNOWN. |
17 const char kFakeVariationsChannel[] = "fake-variations-channel"; | 17 const char kFakeVariationsChannel[] = "fake-variations-channel"; |
18 | 18 |
19 // This option can be used to force parameters of field trials when testing | 19 // This option can be used to force parameters of field trials when testing |
20 // changes locally. The argument is a param list of (key, value) pairs prefixed | 20 // changes locally. The argument is a param list of (key, value) pairs prefixed |
21 // by an associated (trial, group) pair. You specify the param list for multiple | 21 // by an associated (trial, group) pair. You specify the param list for multiple |
22 // (trial, group) pairs with a comma separator. | 22 // (trial, group) pairs with a comma separator. |
23 // Example: | 23 // Example: |
24 // "Trial1.Group1:k1/v1/k2/v2,Trial2.Group2:k3/v3/k4/v4" | 24 // "Trial1.Group1:k1/v1/k2/v2,Trial2.Group2:k3/v3/k4/v4" |
25 // Trial names, groups names, parameter names, and value should all be URL | 25 // Trial names, groups names, parameter names, and value should all be URL |
26 // escaped for all non-alphanumeric characters. | 26 // escaped for all non-alphanumeric characters. |
27 const char kForceFieldTrialParams[] = "force-fieldtrial-params"; | 27 const char kForceFieldTrialParams[] = "force-fieldtrial-params"; |
28 | 28 |
| 29 // Allows overriding the country used for evaluating variations. This is similar |
| 30 // to the "Override Variations Country" entry on chrome://translate-internals, |
| 31 // but is exposed as a command-line flag to allow testing First Run scenarios. |
| 32 // Additionally, unlike chrome://translate-internals, the value isn't persisted |
| 33 // across sessions. |
| 34 const char kVariationsOverrideCountry[] = "variations-override-country"; |
| 35 |
29 // Specifies a custom URL for the server which reports variation data to the | 36 // Specifies a custom URL for the server which reports variation data to the |
30 // client. Specifying this switch enables the Variations service on | 37 // client. Specifying this switch enables the Variations service on |
31 // unofficial builds. See variations_service.cc. | 38 // unofficial builds. See variations_service.cc. |
32 const char kVariationsServerURL[] = "variations-server-url"; | 39 const char kVariationsServerURL[] = "variations-server-url"; |
33 | 40 |
34 } // namespace switches | 41 } // namespace switches |
35 } // namespace variations | 42 } // namespace variations |
OLD | NEW |