Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Unified Diff: components/variations/variations_switches.cc

Issue 2465953002: Move Field Trial Utils from chrome/common/variations to components/variations/field_trial_util (Closed)
Patch Set: Moved to components/variations/field_trial_util and chrome switches Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/variations/variations_switches.h ('k') | tools/variations/fieldtrial_to_struct_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/variations/variations_switches.cc
diff --git a/components/variations/variations_switches.cc b/components/variations/variations_switches.cc
index e4b5b215444581b73e0e1abe9ad18a899658306a..0bc8e82746e7b1be82e0398d55d663a1f66001fc 100644
--- a/components/variations/variations_switches.cc
+++ b/components/variations/variations_switches.cc
@@ -7,12 +7,25 @@
namespace variations {
namespace switches {
+// Disable field trial tests configured in fieldtrial_testing_config.json.
+const char kDisableFieldTrialTestingConfig[] = "disable-field-trial-config";
+
// Fakes the channel of the browser for purposes of Variations filtering. This
// is to be used for testing only. Possible values are "stable", "beta", "dev"
// and "canary". Note that this only applies if the browser's reported channel
// is UNKNOWN.
const char kFakeVariationsChannel[] = "fake-variations-channel";
+// This option can be used to force parameters of field trials when testing
+// changes locally. The argument is a param list of (key, value) pairs prefixed
+// by an associated (trial, group) pair. You specify the param list for multiple
+// (trial, group) pairs with a comma separator.
+// Example:
+// "Trial1.Group1:k1/v1/k2/v2,Trial2.Group2:k3/v3/k4/v4"
+// Trial names, groups names, parameter names, and value should all be URL
+// escaped for all non-alphanumeric characters.
+const char kForceFieldTrialParams[] = "force-fieldtrial-params";
+
// Specifies a custom URL for the server which reports variation data to the
// client. Specifying this switch enables the Variations service on
// unofficial builds. See variations_service.cc.
« no previous file with comments | « components/variations/variations_switches.h ('k') | tools/variations/fieldtrial_to_struct_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698