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

Issue 6354023: Added a function to BrowserMainParts that is called after about_flags has con... (Closed)

Created:
9 years, 11 months ago by dominich
Modified:
9 years, 7 months ago
Reviewers:
cbentzel, Nico, viettrungluu
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Added a function to BrowserMainParts that sets up field trials. It is called after about_flags has converted the flags to command-line switches. This fixes the case where a field trial would opt a user out of a feature even when they'd explicitly enabled it in their flags. Contributed by: dominich@chromium.org BUG=none TEST=Enable page-prerender through about:flags and restart. You should skip the random part of the Field Test. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72689

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -10 lines) Patch
M chrome/browser/browser_main.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/browser_main.cc View 1 2 4 chunks +16 lines, -10 lines 3 comments Download

Messages

Total messages: 14 (0 generated)
dominich
As discussed with cbentzel
9 years, 11 months ago (2011-01-25 20:17:46 UTC) #1
cbentzel
Adding trungl - this looks OK for prerender/prefetch, but I'm not sure about how it ...
9 years, 11 months ago (2011-01-25 21:50:21 UTC) #2
cbentzel
Adding a few others who have been doing about:flags changes as well. On Tue, Jan ...
9 years, 11 months ago (2011-01-25 21:51:20 UTC) #3
Nico
Is there any way to do this without making about_flags even more complex?
9 years, 11 months ago (2011-01-25 21:53:10 UTC) #4
dominich
On 2011/01/25 21:53:10, Nico wrote: > Is there any way to do this without making ...
9 years, 11 months ago (2011-01-25 22:00:41 UTC) #5
dominich
http://codereview.chromium.org/6354023/diff/1/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/6354023/diff/1/chrome/browser/browser_main.cc#newcode1270 chrome/browser/browser_main.cc:1270: parts->PostAboutFlagsConvertedToSwitches(); On 2011/01/25 21:50:21, cbentzel wrote: > This should ...
9 years, 11 months ago (2011-01-25 22:00:45 UTC) #6
Nico
On 2011/01/25 22:00:41, dominic wrote: > On 2011/01/25 21:53:10, Nico wrote: > > Is there ...
9 years, 11 months ago (2011-01-25 22:09:56 UTC) #7
Nico
s
9 years, 11 months ago (2011-01-25 22:10:01 UTC) #8
dominich
On 2011/01/25 22:09:56, Nico wrote: > On 2011/01/25 22:00:41, dominic wrote: > > On 2011/01/25 ...
9 years, 11 months ago (2011-01-25 22:17:18 UTC) #9
dominich
After discussion with Nico I've moved the other Field trial setup functions to the same ...
9 years, 11 months ago (2011-01-25 22:51:05 UTC) #10
cbentzel
http://codereview.chromium.org/6354023/diff/11002/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/6354023/diff/11002/chrome/browser/browser_main.cc#newcode196 chrome/browser/browser_main.cc:196: base::FieldTrial::EnableBenchmarking(); Why didn't this move to SetupFieldTrials? Did it ...
9 years, 11 months ago (2011-01-25 22:51:41 UTC) #11
Nico
LG http://codereview.chromium.org/6354023/diff/11002/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/6354023/diff/11002/chrome/browser/browser_main.cc#newcode1259 chrome/browser/browser_main.cc:1259: // field trials Nit "." at end of ...
9 years, 11 months ago (2011-01-25 22:58:07 UTC) #12
dominich
http://codereview.chromium.org/6354023/diff/11002/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/6354023/diff/11002/chrome/browser/browser_main.cc#newcode196 chrome/browser/browser_main.cc:196: base::FieldTrial::EnableBenchmarking(); On 2011/01/25 22:51:41, cbentzel wrote: > Why didn't ...
9 years, 11 months ago (2011-01-25 22:59:26 UTC) #13
cbentzel
9 years, 11 months ago (2011-01-25 23:30:54 UTC) #14
LGTM

On Tue, Jan 25, 2011 at 5:59 PM, <dominich@chromium.org> wrote:

>
>
>
http://codereview.chromium.org/6354023/diff/11002/chrome/browser/browser_main.cc
> File chrome/browser/browser_main.cc (right):
>
>
>
http://codereview.chromium.org/6354023/diff/11002/chrome/browser/browser_main...
> chrome/browser/browser_main.cc:196:
> base::FieldTrial::EnableBenchmarking();
>
> On 2011/01/25 22:51:41, cbentzel wrote:
>
>> Why didn't this move to SetupFieldTrials? Did it need to be called
>>
> early?
>
> My first thought was that it isn't enabled through about:flags, and
> while you're right that this should be in the SetupFieldTrials() method
> for completeness, there may be some field trials that need to be set up
> earlier. This would then need to be called before those. I thought it
> safer to leave it.
>
>
> http://codereview.chromium.org/6354023/
>

Powered by Google App Engine
This is Rietveld 408576698