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

Unified Diff: chrome/common/chrome_switches.cc

Issue 1090813005: Add a mechanism to force parameters of a group to a specific value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months 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 | « chrome/common/chrome_switches.h ('k') | chrome/common/variations/variations_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_switches.cc
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 0ddcae19396575e7b5a390ae8b371661786dd299..8b9aedeeef245cbbe0eef31ef5ab69582e380e25 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -631,6 +631,16 @@ const char kFlagSwitchesEnd[] = "flag-switches-end";
// the app to be installed if it hasn't been already.
const char kForceAppMode[] = "force-app-mode";
+// This option can be used to force parameters of field trials when testing
+// changes locally. The argument is a list of key/value pairs prefixed by
+// Trial/Group pair. The following shows setting parameters to 2 experiments
+// where in the first, it forces "id" to be "foo" for the "Enabled" group of
+// the "EnhancedBookmarks" trial:
+// "EnhancedBookmarks.Enabled:id/foo,Experiment2.Group1:key1/value1"
+// Trial names, groups names, parameter names, and value should all be URL
+// escaped for all non-alphanumeric characters.
+const char kForceFieldTrialParams[] = "force-fieldtrial-params";
+
// Displays the First Run experience when the browser is started, regardless of
// whether or not it's actually the First Run (this overrides kNoFirstRun).
const char kForceFirstRun[] = "force-first-run";
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/common/variations/variations_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698