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

Issue 10165014: Add and implement API to associate Google experiment IDs with FieldTrials. (Closed)

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

Description

Add and implement API to associate Google experiment IDs with FieldTrials. This includes unit tests for the API, but no uses yet. This change also involves exposing a new MakeGroupNameId static helper in FieldTrial to assist with the usage of this new API. BUG=121988 TEST=Ensure that unit_tests GoogleExperimentsTest.* pass. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133470

Patch Set 1 #

Patch Set 2 : Added global FieldTrialList to fix leaks #

Patch Set 3 : scoped_refptr usage #

Patch Set 4 : added time variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+296 lines, -9 lines) Patch
M base/metrics/field_trial.h View 1 chunk +4 lines, -0 lines 0 comments Download
M base/metrics/field_trial.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/metrics/field_trial_synchronizer.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/metrics/experiments_helper.h View 1 chunk +64 lines, -2 lines 0 comments Download
M chrome/common/metrics/experiments_helper.cc View 2 chunks +69 lines, -3 lines 0 comments Download
A chrome/common/metrics/experiments_helper_unittest.cc View 1 2 3 1 chunk +144 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_render_process_observer.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
SteveT
This code is the same as http://codereview.chromium.org/9965086/, which was reverted due to a leak. The ...
8 years, 8 months ago (2012-04-20 21:05:03 UTC) #1
willchan no longer on Chromium
base/ lgtm On 2012/04/20 21:05:03, SteveT wrote: > This code is the same as http://codereview.chromium.org/9965086/, ...
8 years, 8 months ago (2012-04-20 21:07:56 UTC) #2
MAD
LGTM!
8 years, 8 months ago (2012-04-20 21:10:52 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/10165014/2001
8 years, 8 months ago (2012-04-20 21:11:59 UTC) #4
SteveT
cc+Jim I've reached a bit of a dilemma here. The unit tests were initially failing ...
8 years, 8 months ago (2012-04-21 00:34:28 UTC) #5
MAD
Can you check how the other tests that get used_without_global_ being set deal with their ...
8 years, 8 months ago (2012-04-21 01:02:44 UTC) #6
jar (doing other things)
Keeping the dtor private is goodness, but it is common for tests, which operate against ...
8 years, 8 months ago (2012-04-21 15:28:10 UTC) #7
Steve
On Sat, Apr 21, 2012 at 11:28 AM, <jar@chromium.org> wrote: > Keeping the dtor private ...
8 years, 8 months ago (2012-04-21 19:36:37 UTC) #8
SteveT
scoped_refptr seems to be the way to go. It's a bit better than Jim's suggestion ...
8 years, 8 months ago (2012-04-21 21:15:26 UTC) #9
MAD
LGTM... The only last nit I might have would be to use test fixture variables ...
8 years, 8 months ago (2012-04-23 14:49:54 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/10165014/17001
8 years, 8 months ago (2012-04-23 16:08:55 UTC) #11
commit-bot: I haz the power
8 years, 8 months ago (2012-04-23 17:41:07 UTC) #12
Change committed as 133470

Powered by Google App Engine
This is Rietveld 408576698