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

Side by Side 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, 7 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "chrome/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 9
10 namespace switches { 10 namespace switches {
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 // These two flags are added around the switches about:flags adds to the 624 // These two flags are added around the switches about:flags adds to the
625 // command line. This is useful to see which switches were added by about:flags 625 // command line. This is useful to see which switches were added by about:flags
626 // on about:version. They don't have any effect. 626 // on about:version. They don't have any effect.
627 const char kFlagSwitchesBegin[] = "flag-switches-begin"; 627 const char kFlagSwitchesBegin[] = "flag-switches-begin";
628 const char kFlagSwitchesEnd[] = "flag-switches-end"; 628 const char kFlagSwitchesEnd[] = "flag-switches-end";
629 629
630 // Forces application mode. This hides certain system UI elements and forces 630 // Forces application mode. This hides certain system UI elements and forces
631 // the app to be installed if it hasn't been already. 631 // the app to be installed if it hasn't been already.
632 const char kForceAppMode[] = "force-app-mode"; 632 const char kForceAppMode[] = "force-app-mode";
633 633
634 // This option can be used to force parameters of field trials when testing
635 // changes locally. The argument is a list of key/value pairs prefixed by
636 // Trial/Group pair. The following shows setting parameters to 2 experiments
637 // where in the first, it forces "id" to be "foo" for the "Enabled" group of
638 // the "EnhancedBookmarks" trial:
639 // "EnhancedBookmarks.Enabled:id/foo,Experiment2.Group1:key1/value1"
640 // Trial names, groups names, parameter names, and value should all be URL
641 // escaped for all non-alphanumeric characters.
642 const char kForceFieldTrialParams[] = "force-fieldtrial-params";
643
634 // Displays the First Run experience when the browser is started, regardless of 644 // Displays the First Run experience when the browser is started, regardless of
635 // whether or not it's actually the First Run (this overrides kNoFirstRun). 645 // whether or not it's actually the First Run (this overrides kNoFirstRun).
636 const char kForceFirstRun[] = "force-first-run"; 646 const char kForceFirstRun[] = "force-first-run";
637 647
638 // Forces additional Chrome Variation Ids that will be sent in X-Client-Data 648 // Forces additional Chrome Variation Ids that will be sent in X-Client-Data
639 // header, specified as a 64-bit encoded list of numeric experiment ids. Ids 649 // header, specified as a 64-bit encoded list of numeric experiment ids. Ids
640 // prefixed with the character "t" will be treated as Trigger Variation Ids. 650 // prefixed with the character "t" will be treated as Trigger Variation Ids.
641 const char kForceVariationIds[] = "force-variation-ids"; 651 const char kForceVariationIds[] = "force-variation-ids";
642 652
643 // These flags show the man page on Linux. They are equivalent to each 653 // These flags show the man page on Linux. They are equivalent to each
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
1380 1390
1381 // ----------------------------------------------------------------------------- 1391 // -----------------------------------------------------------------------------
1382 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1392 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1383 // 1393 //
1384 // You were going to just dump your switches here, weren't you? Instead, please 1394 // You were going to just dump your switches here, weren't you? Instead, please
1385 // put them in alphabetical order above, or in order inside the appropriate 1395 // put them in alphabetical order above, or in order inside the appropriate
1386 // ifdef at the bottom. The order should match the header. 1396 // ifdef at the bottom. The order should match the header.
1387 // ----------------------------------------------------------------------------- 1397 // -----------------------------------------------------------------------------
1388 1398
1389 } // namespace switches 1399 } // namespace switches
OLDNEW
« 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