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

Issue 6931048: Revert 84197 - Add one-time randomization support for FieldTrial, and the ability to (Closed)

Created:
9 years, 7 months ago by Jói
Modified:
9 years, 7 months ago
Reviewers:
Jói, mattm
CC:
chromium-reviews, jam, cbentzel+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Revert 84197 - Add one-time randomization support for FieldTrial, and the ability to disable field trials. I am going to have a need for both soon. Cleaning up some comments about empty trial names, adding static method TrialExists() and simplifying many call sites by using this method. While I'm in there and needing base/OWNERS approval, add an OWNERS file for base/metrics that adds jar@chromium.org as an owner for that directory. BUG=none TEST=base_unittests TBR=jam@chromium.org R=jar@chromium.org,phajdan.jr@chromium.org,mark@chromium.org,wtc@chromium.org Reason for revert: See http://crbug.com/81750 BUG=81750 TBR=joi@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=84373

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -453 lines) Patch
D base/metrics/OWNERS View 1 chunk +0 lines, -1 line 0 comments Download
M base/metrics/field_trial.h View 15 chunks +30 lines, -85 lines 0 comments Download
M base/metrics/field_trial.cc View 10 chunks +13 lines, -85 lines 0 comments Download
M base/metrics/field_trial_unittest.cc View 5 chunks +7 lines, -118 lines 0 comments Download
M base/rand_util.h View 1 chunk +0 lines, -4 lines 0 comments Download
M base/rand_util.cc View 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/browser_main.h View 5 chunks +3 lines, -23 lines 0 comments Download
M chrome/browser/browser_main.cc View 5 chunks +60 lines, -81 lines 0 comments Download
M chrome/browser/metrics/metrics_service.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/renderer/page_load_histograms.cc View 11 chunks +28 lines, -21 lines 0 comments Download
M chrome/renderer/prerender/prerender_helper.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/renderer_main.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M net/base/host_resolver_impl.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M net/http/http_cache_transaction.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/http/http_network_transaction.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M net/socket/client_socket_pool_histograms.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M net/socket/ssl_client_socket_pool.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M net/socket/stream_socket.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Jói
9 years, 7 months ago (2011-05-06 00:42:43 UTC) #1
Jói
Matt, thanks for letting me know about this problem (http://crbug.com/81750). It was introduced by the ...
9 years, 7 months ago (2011-05-06 00:48:22 UTC) #2
Jói
I've committed the revert (r84373), will re-land the original change with fix tomorrow once I ...
9 years, 7 months ago (2011-05-06 00:54:30 UTC) #3
mattm
9 years, 7 months ago (2011-05-06 01:00:41 UTC) #4
I was using GYP_DEFINES='branding=Chrome buildtype=Official'.  You need
src-internal checked out too.

On 2011/05/06 00:54:30, Jói wrote:
> I've committed the revert (r84373), will re-land the original change with fix
> tomorrow once I have time to test (IIRC there is a way to build an
offical-like
> build locally, I will do that to test the case you were seeing).
> 
> Cheers,
> Jói
> 
> 
> 
> On 2011/05/06 00:48:22, Jói wrote:
> > Matt, thanks for letting me know about this problem
(http://crbug.com/81750). 
> > It was introduced by the change because initialization of FieldTrialList is
> > deferred compared to before the change, and neither I didn't notice the
field
> > trial you mentioned is initialized earlier in official builds.
> > 
> > BTW, to answer your remark regarding use of TBR for this change, it looks
like
> > using the --tbr flag to [git cl dcommit] eliminated the actual list of
> > reviewers.  The change had several rounds of review by
> mailto:jar@chromium.org, plus
> > two reviews for OWNERS approval, and the --tbr was just for the last missing
> > one-line OWNERS approval that I hadn't realized I needed.  I'm also not sure
> why
> > the review link was missing, perhaps for the same reason (--tbr); the
correct
> > review link is http://codereview.chromium.org/6883102/
> > 
> > Cheers,
> > Jói

Powered by Google App Engine
This is Rietveld 408576698