diff options
author | mad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-12 07:08:07 +0000 |
---|---|---|
committer | mad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-12 07:08:07 +0000 |
commit | 2d4729587b4377874e12be4c578333f02f0cba4b (patch) | |
tree | 457c4cb66b23eb7b7ff2eef50decd77b479d3b62 /chrome_frame | |
parent | c263bc8d3aae4595f1351a70c80142438e017e26 (diff) | |
download | chromium_src-2d4729587b4377874e12be4c578333f02f0cba4b.zip chromium_src-2d4729587b4377874e12be4c578333f02f0cba4b.tar.gz chromium_src-2d4729587b4377874e12be4c578333f02f0cba4b.tar.bz2 |
Field Trials choices can now be forced from a command line argument, and yet still behave as if a coin was tossed, except the coin is tricked :-).
To do this, we needed to change the usage from a regular constructor (which is not private) to a static CreateInstance method (which is why there is a bunch of TBR'd owners, those changes were trivial to existing users of FieldTrials).
OWNERs of trivially changed files:
TBR=sky,jamesr,cpu,joi,
BUG=119726
TEST=base_unittests.exe --gtest_filter=FieldTrialTest.*
You can also find an active field trial name and force it to a given group by passing the following command line argument "--force-fieldtest=<trial_name>/<default_group_name>/<group_name>/"
Review URL: http://codereview.chromium.org/9705074
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131948 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r-- | chrome_frame/chrome_frame_automation.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome_frame/chrome_frame_automation.cc b/chrome_frame/chrome_frame_automation.cc index 88f5f9c..9a649c0 100644 --- a/chrome_frame/chrome_frame_automation.cc +++ b/chrome_frame/chrome_frame_automation.cc @@ -1040,8 +1040,10 @@ void ChromeFrameAutomationClient::InitializeFieldTrials() { if (!trial) { // Do one-time initialization of the field trial here. // TODO(robertshield): End the field trial before March 7th 2013. - scoped_refptr<base::FieldTrial> new_trial = new base::FieldTrial( - "ChromeShutdownDelay", 1000, kWithDelayFieldTrialName, 2013, 3, 7); + scoped_refptr<base::FieldTrial> new_trial = + base::FieldTrialList::FactoryGetFieldTrial( + "ChromeShutdownDelay", 1000, kWithDelayFieldTrialName, + 2013, 3, 7, NULL); // Be consistent for this client. Note that this will only have an effect // once the client id is persisted. See http://crbug.com/117188 |