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

Issue 10151017: Remove the hash fields from FieldTrials. (Closed)

Created:
8 years, 8 months ago by SteveT
Modified:
8 years, 8 months ago
CC:
chromium-reviews, erikwright (departed), MAD, Ilya Sherman, jar (doing other things), brettw-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Remove the hash fields from FieldTrials. We want to migrate the hash fields and related methods from FieldTrials over to experiments_helper. We've also updated the unit tests that accomodate these changes. We've also refactored the experiments_helper APIs for GoogleExperimentIDs to take strings instead of NameGroupIds as keys... we do the hashing internally instead. BUG=None TEST=Ensure that base_unittests FieldTrialTest.* all pass. Ensure that unit_tests ExperimentsHelperTest.* all pass. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134350

Patch Set 1 #

Total comments: 20

Patch Set 2 : MAD comments. Reshuffled test methods. #

Total comments: 10

Patch Set 3 : Changed GXID API to accept strings #

Total comments: 16

Patch Set 4 : jar comments #

Patch Set 5 : lint #

Patch Set 6 : merge to TOT #

Patch Set 7 : Fix win_rel test error #

Patch Set 8 : a MAD nit #

Total comments: 2

Patch Set 9 : header order #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -192 lines) Patch
M base/metrics/field_trial.h View 1 2 3 4 8 chunks +18 lines, -33 lines 0 comments Download
M base/metrics/field_trial.cc View 1 7 chunks +10 lines, -44 lines 0 comments Download
M base/metrics/field_trial_unittest.cc View 2 chunks +18 lines, -45 lines 0 comments Download
M chrome/browser/metrics/metrics_log.h View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/metrics/metrics_log.cc View 1 2 3 4 5 5 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/metrics/metrics_log_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/common/metrics/experiments_helper.h View 1 2 3 4 4 chunks +60 lines, -20 lines 0 comments Download
M chrome/common/metrics/experiments_helper.cc View 1 2 3 5 chunks +84 lines, -26 lines 0 comments Download
M chrome/common/metrics/experiments_helper_unittest.cc View 1 2 3 4 5 6 7 6 chunks +72 lines, -13 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
SteveT
PTAL.
8 years, 8 months ago (2012-04-25 17:22:52 UTC) #1
MAD
Some comments/suggestions... Good stuff... Thanks for that! BYE MAD https://chromiumcodereview.appspot.com/10151017/diff/1/chrome/common/metrics/experiments_helper.cc File chrome/common/metrics/experiments_helper.cc (right): https://chromiumcodereview.appspot.com/10151017/diff/1/chrome/common/metrics/experiments_helper.cc#newcode87 chrome/common/metrics/experiments_helper.cc:87: ...
8 years, 8 months ago (2012-04-25 20:03:22 UTC) #2
Ilya Sherman
Drive-by nit :) https://chromiumcodereview.appspot.com/10151017/diff/1/chrome/browser/metrics/metrics_log.h File chrome/browser/metrics/metrics_log.h (right): https://chromiumcodereview.appspot.com/10151017/diff/1/chrome/browser/metrics/metrics_log.h#newcode99 chrome/browser/metrics/metrics_log.h:99: std::vector<experiments_helper::NameGroupId>* field_trial_ids) const; nit: Can we ...
8 years, 8 months ago (2012-04-25 20:26:57 UTC) #3
SteveT
I believe I've addressed everything. PTAL. Ass soon as you're all done, I'll pass this ...
8 years, 8 months ago (2012-04-26 19:03:30 UTC) #4
MAD
Almost there... A few more comments... BYE MAD https://chromiumcodereview.appspot.com/10151017/diff/1/chrome/common/metrics/experiments_helper.h File chrome/common/metrics/experiments_helper.h (right): https://chromiumcodereview.appspot.com/10151017/diff/1/chrome/common/metrics/experiments_helper.h#newcode75 chrome/common/metrics/experiments_helper.h:75: NameGroupId ...
8 years, 8 months ago (2012-04-26 19:40:12 UTC) #5
SteveT
Since we'd like to speed up our GXID work, I am going to R+jar before ...
8 years, 8 months ago (2012-04-26 21:06:03 UTC) #6
jar (doing other things)
The cleaning up of field_trial.* is looking pretty good. I had a bunch of nits, ...
8 years, 8 months ago (2012-04-26 22:24:22 UTC) #7
SteveT
Addressed (most of) Jim's comments - thanks for the quick review. Let me know what ...
8 years, 8 months ago (2012-04-26 23:42:46 UTC) #8
MAD
LGTM! Thanks... BYE MAD... https://chromiumcodereview.appspot.com/10151017/diff/11012/chrome/common/metrics/experiments_helper_unittest.cc File chrome/common/metrics/experiments_helper_unittest.cc (right): https://chromiumcodereview.appspot.com/10151017/diff/11012/chrome/common/metrics/experiments_helper_unittest.cc#newcode105 chrome/common/metrics/experiments_helper_unittest.cc:105: expected_groups.erase(it); On 2012/04/26 21:06:03, SteveT ...
8 years, 8 months ago (2012-04-27 17:33:22 UTC) #9
SteveT
Thanks, MAD. Just waiting on jar@'s approval now. https://chromiumcodereview.appspot.com/10151017/diff/11012/chrome/common/metrics/experiments_helper_unittest.cc File chrome/common/metrics/experiments_helper_unittest.cc (right): https://chromiumcodereview.appspot.com/10151017/diff/11012/chrome/common/metrics/experiments_helper_unittest.cc#newcode105 chrome/common/metrics/experiments_helper_unittest.cc:105: expected_groups.erase(it); ...
8 years, 8 months ago (2012-04-27 17:59:33 UTC) #10
jar (doing other things)
...on question to better understand... an and an nit. http://codereview.chromium.org/10151017/diff/22001/chrome/common/metrics/experiments_helper.cc File chrome/common/metrics/experiments_helper.cc (right): http://codereview.chromium.org/10151017/diff/22001/chrome/common/metrics/experiments_helper.cc#newcode75 chrome/common/metrics/experiments_helper.cc:75: ...
8 years, 8 months ago (2012-04-27 19:05:44 UTC) #11
SteveT
Thanks, Jim. Back to you for additional thoughts. http://codereview.chromium.org/10151017/diff/22001/chrome/common/metrics/experiments_helper.cc File chrome/common/metrics/experiments_helper.cc (right): http://codereview.chromium.org/10151017/diff/22001/chrome/common/metrics/experiments_helper.cc#newcode75 chrome/common/metrics/experiments_helper.cc:75: const ...
8 years, 8 months ago (2012-04-27 19:15:12 UTC) #12
jar (doing other things)
http://codereview.chromium.org/10151017/diff/22001/chrome/common/metrics/experiments_helper.cc File chrome/common/metrics/experiments_helper.cc (right): http://codereview.chromium.org/10151017/diff/22001/chrome/common/metrics/experiments_helper.cc#newcode75 chrome/common/metrics/experiments_helper.cc:75: const std::string& group_name) { The win is not that ...
8 years, 8 months ago (2012-04-27 19:31:55 UTC) #13
SteveT
Thanks all, for the review. I'll be committing this shortly so we can move on ...
8 years, 8 months ago (2012-04-27 19:34:56 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/10151017/51001
8 years, 8 months ago (2012-04-27 19:36:45 UTC) #15
commit-bot: I haz the power
8 years, 8 months ago (2012-04-27 21:11:06 UTC) #16
Change committed as 134350

Powered by Google App Engine
This is Rietveld 408576698