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

Issue 9117037: Added a Unique ID for a Field Trial containing it's hashed name and the selected group ID. (Closed)

Created:
8 years, 11 months ago by MAD
Modified:
8 years, 11 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, Ilya Sherman
Visibility:
Public.

Description

Added a Unique ID for a Field Trial containing it's hashed name and the selected group ID. Also returns the list of UIDs of all currently running Field Trials BUG=None TEST=FieldTrialTest.UIDs Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=119444

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 6

Patch Set 4 : '' #

Total comments: 18

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 8

Patch Set 7 : BackToDCHECK #

Patch Set 8 : BackToDCHECK2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -13 lines) Patch
M base/metrics/field_trial.h View 1 2 3 4 5 6 7 7 chunks +35 lines, -1 line 0 comments Download
M base/metrics/field_trial.cc View 1 2 3 4 5 6 7 9 chunks +53 lines, -12 lines 0 comments Download
M base/metrics/field_trial_unittest.cc View 1 2 3 4 5 6 7 1 chunk +70 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
MAD
Is this OK for returning Unique IDentifiers for Field Trials that we could then add ...
8 years, 11 months ago (2012-01-24 18:07:18 UTC) #1
MAD
Oops... Wait... The hashing I used is bad, I need to change it... Sorry... Will ...
8 years, 11 months ago (2012-01-24 18:50:58 UTC) #2
jar (doing other things)
https://chromiumcodereview.appspot.com/9117037/diff/1/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://chromiumcodereview.appspot.com/9117037/diff/1/base/metrics/field_trial.cc#newcode145 base/metrics/field_trial.cc:145: *uid = std::make_pair(BASE_HASH_NAMESPACE::hash_value(name_), group_); IMO, you should consider generating ...
8 years, 11 months ago (2012-01-24 19:19:44 UTC) #3
MAD
How about this updated version? Thanks! BYE MAD https://chromiumcodereview.appspot.com/9117037/diff/1/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://chromiumcodereview.appspot.com/9117037/diff/1/base/metrics/field_trial.cc#newcode145 base/metrics/field_trial.cc:145: *uid ...
8 years, 11 months ago (2012-01-24 20:30:24 UTC) #4
jar (doing other things)
https://chromiumcodereview.appspot.com/9117037/diff/2004/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://chromiumcodereview.appspot.com/9117037/diff/2004/base/metrics/field_trial.cc#newcode52 base/metrics/field_trial.cc:52: enable_field_trial_(true) { please provide initialization for the group_name_hash_ https://chromiumcodereview.appspot.com/9117037/diff/2004/base/metrics/field_trial.cc#newcode146 ...
8 years, 11 months ago (2012-01-24 21:51:22 UTC) #5
MAD
Yeah, I was thinking about that but didn't know if I could safely rely on ...
8 years, 11 months ago (2012-01-25 00:14:48 UTC) #6
jar (doing other things)
You probably have two (easy) choices: a) Hope that a hash won't collide with a ...
8 years, 11 months ago (2012-01-25 03:37:12 UTC) #7
jar (doing other things)
...or an even nicer variant of (b): If the low order 32 bits match the ...
8 years, 11 months ago (2012-01-25 12:56:28 UTC) #8
MAD
Yeah, I implemented A) with a DCHECK saying: "Bad luck, that name can't be used" ...
8 years, 11 months ago (2012-01-25 14:09:57 UTC) #9
Alexei Svitkine (slow)
https://chromiumcodereview.appspot.com/9117037/diff/8001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://chromiumcodereview.appspot.com/9117037/diff/8001/base/metrics/field_trial.cc#newcode197 base/metrics/field_trial.cc:197: SHA1HashBytes(reinterpret_cast<const unsigned char*>(name.c_str()), I think you can use |SHA1HashString()| ...
8 years, 11 months ago (2012-01-25 15:25:19 UTC) #10
MAD
Thanks Alexei, I fixed all but two of you comments, where I ask you a ...
8 years, 11 months ago (2012-01-25 17:02:32 UTC) #11
jar (doing other things)
On Wed, Jan 25, 2012 at 9:02 AM, <mad@chromium.org> wrote: > Thanks Alexei, I fixed ...
8 years, 11 months ago (2012-01-25 17:08:55 UTC) #12
Alexei Svitkine (slow)
https://chromiumcodereview.appspot.com/9117037/diff/8001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://chromiumcodereview.appspot.com/9117037/diff/8001/base/metrics/field_trial.cc#newcode195 base/metrics/field_trial.cc:195: // even for nearly-identical name. "nearly-identical name" -> "nearly-identical ...
8 years, 11 months ago (2012-01-25 17:40:16 UTC) #13
MAD
OK, thanks again... Uploaded a new patch that should take care of all current comments... ...
8 years, 11 months ago (2012-01-25 18:48:53 UTC) #14
Alexei Svitkine (slow)
https://chromiumcodereview.appspot.com/9117037/diff/14007/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://chromiumcodereview.appspot.com/9117037/diff/14007/base/metrics/field_trial.cc#newcode196 base/metrics/field_trial.cc:196: static const size_t kStep = sizeof(uint32) / sizeof(char); You ...
8 years, 11 months ago (2012-01-25 18:59:39 UTC) #15
jar (doing other things)
https://chromiumcodereview.appspot.com/9117037/diff/14007/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://chromiumcodereview.appspot.com/9117037/diff/14007/base/metrics/field_trial.cc#newcode196 base/metrics/field_trial.cc:196: static const size_t kStep = sizeof(uint32) / sizeof(char); +1 ...
8 years, 11 months ago (2012-01-25 19:52:14 UTC) #16
ian fette
drive-by... https://chromiumcodereview.appspot.com/9117037/diff/14007/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://chromiumcodereview.appspot.com/9117037/diff/14007/base/metrics/field_trial.cc#newcode196 base/metrics/field_trial.cc:196: static const size_t kStep = sizeof(uint32) / sizeof(char); ...
8 years, 11 months ago (2012-01-25 20:03:42 UTC) #17
jar (doing other things)
drive by response to the drive by: :-) You get a much more even distribution ...
8 years, 11 months ago (2012-01-25 20:09:50 UTC) #18
ian fette
The probability of ever hitting any of this code is so close to zero it's ...
8 years, 11 months ago (2012-01-25 21:02:59 UTC) #19
Alexei Svitkine (slow)
On Wed, Jan 25, 2012 at 4:03 PM, <ian@chromium.org> wrote: > The probability of ever ...
8 years, 11 months ago (2012-01-25 21:59:22 UTC) #20
jar (doing other things)
That (with a DCHECK or CHECK) was almost the previous CL upload. IMO, it is ...
8 years, 11 months ago (2012-01-25 22:04:45 UTC) #21
ian fette
The probability of any given string a developer ads triggering this is somewhere around 1 ...
8 years, 11 months ago (2012-01-26 01:22:09 UTC) #22
MAD
I agree with Ian, I forgot the fact that we must do the same on ...
8 years, 11 months ago (2012-01-26 01:30:46 UTC) #23
MAD
How about this now? Thanks! BYE MAD https://chromiumcodereview.appspot.com/9117037/diff/14007/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://chromiumcodereview.appspot.com/9117037/diff/14007/base/metrics/field_trial.cc#newcode196 base/metrics/field_trial.cc:196: static const ...
8 years, 11 months ago (2012-01-26 03:14:42 UTC) #24
Alexei Svitkine (slow)
LGTM
8 years, 11 months ago (2012-01-26 04:45:04 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/9117037/11015
8 years, 11 months ago (2012-01-26 15:21:54 UTC) #26
commit-bot: I haz the power
Presubmit check for 9117037-11015 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 11 months ago (2012-01-26 15:21:58 UTC) #27
MAD
On 2012/01/26 04:45:04, Alexei Svitkine wrote: > LGTM Thanks Alexei... I hit the commit box ...
8 years, 11 months ago (2012-01-26 15:22:37 UTC) #28
MAD
Oops... I didn't check for owners first... So I guess I'll wait for an OWNERS ...
8 years, 11 months ago (2012-01-26 15:25:42 UTC) #29
jar (doing other things)
lgtm
8 years, 11 months ago (2012-01-26 20:05:06 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/9117037/11015
8 years, 11 months ago (2012-01-26 20:10:28 UTC) #31
commit-bot: I haz the power
8 years, 11 months ago (2012-01-26 23:52:21 UTC) #32
Try job failure for 9117037-11015 (retry) on win_rel for step "browser_tests".
It's a second try, previously, steps "unit_tests, browser_tests, ui_tests"
failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698