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

Issue 9705074: Supporting command line argument to force field trials (Closed)

Created:
8 years, 9 months ago by MAD
Modified:
8 years, 8 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, jar (doing other things), tburkard+watch_chromium.org, jam, cbentzel+watch_chromium.org, joi+watch-content_chromium.org, dominich+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, estade+watch_chromium.org, James Su, Ilya Sherman, SteveT
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

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>/" Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=131948

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Total comments: 16

Patch Set 3 : Addressed CR Comments added a unit test. #

Total comments: 28

Patch Set 4 : Addressed OWNER's cooments... #

Total comments: 11

Patch Set 5 : No more static default group number #

Total comments: 20

Patch Set 6 : Addressed second round of CR comments from asvitkine #

Total comments: 31

Patch Set 7 : Addressed second round of OWNER comments. #

Total comments: 1

Patch Set 8 : Fixed some ooopss... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+400 lines, -236 lines) Patch
M base/metrics/field_trial.h View 1 2 3 4 5 6 11 chunks +73 lines, -51 lines 0 comments Download
M base/metrics/field_trial.cc View 1 2 3 4 5 6 13 chunks +93 lines, -36 lines 0 comments Download
M base/metrics/field_trial_unittest.cc View 1 2 3 4 5 6 7 20 chunks +100 lines, -53 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_field_trial.cc View 1 2 3 4 5 6 2 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 11 chunks +62 lines, -35 lines 0 comments Download
M chrome/browser/component_updater/pepper_flash_field_trial.cc View 1 2 3 4 5 6 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/instant/instant_field_trial.cc View 1 2 3 4 5 6 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/net/http_pipelining_compatibility_client.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/net/network_stats.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_field_trial.cc View 1 2 3 4 5 6 6 chunks +30 lines, -25 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome_frame/chrome_frame_automation.cc View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 1 chunk +7 lines, -9 lines 0 comments Download
M content/renderer/renderer_main.cc View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
MAD
Please... Thanks! BYE MAD
8 years, 9 months ago (2012-03-23 18:02:44 UTC) #1
MAD
Oupssss... Wait... I have some more changes locally that didn't get uploaded... I'll send another ...
8 years, 9 months ago (2012-03-23 18:10:50 UTC) #2
Alexei Svitkine (slow)
Hey MAD, Mostly looks good with some nits. Could you also add a unit test ...
8 years, 9 months ago (2012-03-23 18:41:55 UTC) #3
MAD
Thanks... Addressed comments (except one which I answered) and also added a new test (forgot ...
8 years, 9 months ago (2012-03-23 20:20:12 UTC) #4
Alexei Svitkine (slow)
Thanks! LGTM.
8 years, 9 months ago (2012-03-23 20:28:19 UTC) #5
MAD
Thanks Alexei... Now I need a OWNERS review from jar@ for stuff under base\metrics Where ...
8 years, 9 months ago (2012-03-23 20:49:15 UTC) #6
Ilya Sherman
https://chromiumcodereview.appspot.com/9705074/diff/13001/base/metrics/field_trial.h File base/metrics/field_trial.h (right): https://chromiumcodereview.appspot.com/9705074/diff/13001/base/metrics/field_trial.h#newcode390 base/metrics/field_trial.h:390: friend class base::FieldTrial; nit: No need for "base::"
8 years, 9 months ago (2012-03-23 21:35:53 UTC) #7
jar (doing other things)
The cl appears to break most all (revealed) uses of non-binary field trials. You significantly ...
8 years, 9 months ago (2012-03-23 23:03:00 UTC) #8
MAD
Thanks for the comments Jim... I don't think returning the same group value for non-chosen ...
8 years, 9 months ago (2012-03-26 19:50:53 UTC) #9
MAD
Alexei, please take another look now that I made some changes to address Jim's comments... ...
8 years, 9 months ago (2012-03-27 14:06:42 UTC) #10
Alexei Svitkine (slow)
Some code comments below, but a general comment: I feel this makes things a bit ...
8 years, 9 months ago (2012-03-27 14:29:27 UTC) #11
MAD
On Tue, Mar 27, 2012 at 10:29 AM, <asvitkine@chromium.org> wrote: > Some code comments below, ...
8 years, 9 months ago (2012-03-27 14:39:37 UTC) #12
MAD
Please take another look... I changed the scheme of "specifying the default group name when ...
8 years, 8 months ago (2012-03-29 18:07:17 UTC) #13
Alexei Svitkine (slow)
https://chromiumcodereview.appspot.com/9705074/diff/28002/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://chromiumcodereview.appspot.com/9705074/diff/28002/base/metrics/field_trial.cc#newcode98 base/metrics/field_trial.cc:98: if (group_name_ != default_group_name_) { Hmm. If group_name_ == ...
8 years, 8 months ago (2012-03-29 19:19:06 UTC) #14
MAD
I think I addressed all comments... Please Take Another Look! Thanks! BYE MAD https://chromiumcodereview.appspot.com/9705074/diff/28002/base/metrics/field_trial.cc File ...
8 years, 8 months ago (2012-04-02 18:31:14 UTC) #15
MAD
On 2012/04/02 18:31:14, MAD wrote: > I think I addressed all comments... Please Take Another ...
8 years, 8 months ago (2012-04-02 18:32:16 UTC) #16
MAD
OK, now this patch should be good... Sorry about that... BYE MAD
8 years, 8 months ago (2012-04-02 18:44:35 UTC) #17
Alexei Svitkine (slow)
LGTM
8 years, 8 months ago (2012-04-02 18:52:39 UTC) #18
MAD
Thanks Alexei... Jim, can you take another look from the OWNER's perspective? We had a ...
8 years, 8 months ago (2012-04-02 19:22:23 UTC) #19
jar (doing other things)
https://chromiumcodereview.appspot.com/9705074/diff/24001/base/metrics/field_trial.h File base/metrics/field_trial.h (right): https://chromiumcodereview.appspot.com/9705074/diff/24001/base/metrics/field_trial.h#newcode303 base/metrics/field_trial.h:303: const std::string& name, FieldTrial::Probability total_probability, nit: Here too, one ...
8 years, 8 months ago (2012-04-06 01:41:29 UTC) #20
MAD
Thanks for the comments... Please take another look... BYE MAD https://chromiumcodereview.appspot.com/9705074/diff/38003/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://chromiumcodereview.appspot.com/9705074/diff/38003/base/metrics/field_trial.cc#newcode101 ...
8 years, 8 months ago (2012-04-11 02:38:08 UTC) #21
jar (doing other things)
https://chromiumcodereview.appspot.com/9705074/diff/38003/base/metrics/field_trial_unittest.cc File base/metrics/field_trial_unittest.cc (right): https://chromiumcodereview.appspot.com/9705074/diff/38003/base/metrics/field_trial_unittest.cc#newcode518 base/metrics/field_trial_unittest.cc:518: int chosen_group = forced_trial->AppendGroup("Force", 100); I didn't see the ...
8 years, 8 months ago (2012-04-11 18:06:33 UTC) #22
MAD
Oupsss.... Sorry about that... Both fixed now, thanks for catching... BYE MAD
8 years, 8 months ago (2012-04-11 18:26:06 UTC) #23
jar (doing other things)
lgtm
8 years, 8 months ago (2012-04-11 18:35:01 UTC) #24
MAD
On 2012/04/11 18:35:01, jar wrote: > lgtm Thanks!
8 years, 8 months ago (2012-04-11 18:42:52 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mad@chromium.org/9705074/51025
8 years, 8 months ago (2012-04-11 18:43:07 UTC) #26
commit-bot: I haz the power
Presubmit check for 9705074-51025 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 8 months ago (2012-04-11 18:43:17 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mad@chromium.org/9705074/51025
8 years, 8 months ago (2012-04-11 18:50:25 UTC) #28
Dan Beam
chrome/browser/ui/webui/ntp LGTM (stamp for any presubmit issues you may have)
8 years, 8 months ago (2012-04-11 19:09:43 UTC) #29
commit-bot: I haz the power
Try job failure for 9705074-51025 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 8 months ago (2012-04-11 22:17:27 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mad@chromium.org/9705074/51025
8 years, 8 months ago (2012-04-11 22:19:08 UTC) #31
MAD
These errors don't seem related to the changes... Hitting the CQ once more... :-/ On ...
8 years, 8 months ago (2012-04-11 22:20:13 UTC) #32
commit-bot: I haz the power
Try job failure for 9705074-51025 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 8 months ago (2012-04-12 02:04:50 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mad@chromium.org/9705074/51025
8 years, 8 months ago (2012-04-12 02:30:01 UTC) #34
commit-bot: I haz the power
8 years, 8 months ago (2012-04-12 07:08:11 UTC) #35
Change committed as 131948

Powered by Google App Engine
This is Rietveld 408576698