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

Issue 153913009: Make some field trials unforceable via command-line in the official build. (Closed)

Created:
6 years, 10 months ago by gab
Modified:
5 years, 4 months ago
CC:
chromium-reviews, jar (doing other things), jam, joi+watch-content_chromium.org, darin-cc_chromium.org, asvitkine+watch_chromium.org, erikwright+watch_chromium.org, Ilya Sherman
Visibility:
Public.

Description

Make some field trials unforceable via command-line in the official build. BUG=342585 TEST=Remove the OFFICIAL_BUILD ifdefs and: 1) Confirm that running with --force-fieldtrials with an unforceable experiment and a forceable one only forces the forceable one. 2) Confirm that the value which couldn't be forced in the browser also makes it unforced in the renderer. Put the OFFICIAL_BUILD ifdefs back and confirm that unforceable experiments are still forceable in non-official builds. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250988

Patch Set 1 #

Total comments: 4

Patch Set 2 : review:asvtikine #

Total comments: 4

Patch Set 3 : nit #

Total comments: 4

Patch Set 4 : name -> trial_name #

Total comments: 2

Patch Set 5 : Pass a set rather than using a callback #

Total comments: 2

Patch Set 6 : 1 param per line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -18 lines) Patch
M base/metrics/field_trial.h View 1 2 3 4 2 chunks +7 lines, -3 lines 0 comments Download
M base/metrics/field_trial.cc View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download
M base/metrics/field_trial_unittest.cc View 1 2 3 4 7 chunks +63 lines, -11 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 3 chunks +9 lines, -1 line 0 comments Download
M content/renderer/renderer_main.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 28 (1 generated)
gab
Alexei, PTAL. Thanks! Gab
6 years, 10 months ago (2014-02-10 23:06:26 UTC) #1
Ilya Sherman
Drive-by: Please file a bug for this work, and link to it from this CL. ...
6 years, 10 months ago (2014-02-11 00:00:34 UTC) #2
gab
On 2014/02/11 00:00:34, Ilya Sherman (catching up...) wrote: > Drive-by: Please file a bug for ...
6 years, 10 months ago (2014-02-11 00:22:53 UTC) #3
Alexei Svitkine (slow)
Hmm, when I was thinking about how this would work originally, I was thinking something ...
6 years, 10 months ago (2014-02-11 19:22:58 UTC) #4
gab
On 2014/02/11 19:22:58, Alexei Svitkine wrote: > Hmm, when I was thinking about how this ...
6 years, 10 months ago (2014-02-11 20:14:21 UTC) #5
Alexei Svitkine (slow)
Well, the change doesn't look too unreasonable to me. Ilya, I'm wondering what you think? ...
6 years, 10 months ago (2014-02-11 22:44:01 UTC) #6
gab
PTAL. Thanks! Gab https://codereview.chromium.org/153913009/diff/1/base/metrics/field_trial.h File base/metrics/field_trial.h (right): https://codereview.chromium.org/153913009/diff/1/base/metrics/field_trial.h#newcode294 base/metrics/field_trial.h:294: typedef base::Callback<bool(const std::string& name)> On 2014/02/11 ...
6 years, 10 months ago (2014-02-11 22:53:54 UTC) #7
Ilya Sherman
LGTM % nits https://codereview.chromium.org/153913009/diff/160001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/153913009/diff/160001/chrome/browser/chrome_browser_main.cc#newcode492 chrome/browser/chrome_browser_main.cc:492: static const char* kUnforceableFieldTrials[] = { ...
6 years, 10 months ago (2014-02-11 23:05:03 UTC) #8
gab
Thanks! https://codereview.chromium.org/153913009/diff/160001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/153913009/diff/160001/chrome/browser/chrome_browser_main.cc#newcode492 chrome/browser/chrome_browser_main.cc:492: static const char* kUnforceableFieldTrials[] = { On 2014/02/11 ...
6 years, 10 months ago (2014-02-12 13:48:28 UTC) #9
gab
The CQ bit was checked by gab@chromium.org
6 years, 10 months ago (2014-02-12 13:48:44 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/153913009/290001
6 years, 10 months ago (2014-02-12 13:50:22 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-12 14:09:45 UTC) #12
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=49800
6 years, 10 months ago (2014-02-12 14:09:46 UTC) #13
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/153913009/diff/290001/base/metrics/field_trial.h File base/metrics/field_trial.h (right): https://codereview.chromium.org/153913009/diff/290001/base/metrics/field_trial.h#newcode295 base/metrics/field_trial.h:295: typedef base::Callback<bool(const std::string& name)> Nit: |name| -> |trial_name| ...
6 years, 10 months ago (2014-02-12 14:26:46 UTC) #14
gab
Done, thanks! https://codereview.chromium.org/153913009/diff/290001/base/metrics/field_trial.h File base/metrics/field_trial.h (right): https://codereview.chromium.org/153913009/diff/290001/base/metrics/field_trial.h#newcode295 base/metrics/field_trial.h:295: typedef base::Callback<bool(const std::string& name)> On 2014/02/12 14:26:47, ...
6 years, 10 months ago (2014-02-12 15:59:18 UTC) #15
gab
@sky: OWNER for chrome/browser/chrome_browser_main.cc @jamesr: OWNER for content/renderer/renderer_main.cc Thanks! Gab
6 years, 10 months ago (2014-02-12 16:03:07 UTC) #16
sky
https://codereview.chromium.org/153913009/diff/490001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/153913009/diff/490001/chrome/browser/chrome_browser_main.cc#newcode629 chrome/browser/chrome_browser_main.cc:629: base::Bind(&IsForceableFieldTrial)); Is there a reason you need the function ...
6 years, 10 months ago (2014-02-12 18:17:28 UTC) #17
jamesr
I can't view the bug, but how are developers supposed to debug issues related to ...
6 years, 10 months ago (2014-02-12 21:19:31 UTC) #18
gab
PTAL. Thanks! GAb https://codereview.chromium.org/153913009/diff/490001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/153913009/diff/490001/chrome/browser/chrome_browser_main.cc#newcode629 chrome/browser/chrome_browser_main.cc:629: base::Bind(&IsForceableFieldTrial)); On 2014/02/12 18:17:30, sky wrote: ...
6 years, 10 months ago (2014-02-12 23:38:36 UTC) #19
sky
LGTM
6 years, 10 months ago (2014-02-13 01:04:17 UTC) #20
gab
On 2014/02/13 01:04:17, sky wrote: > LGTM Thanks @jamesr for minor side-effect on renderer_main.cc. Cheers! ...
6 years, 10 months ago (2014-02-13 01:05:49 UTC) #21
jamesr
The bug explains the desire to have this not be controllable by command line, but ...
6 years, 10 months ago (2014-02-13 01:06:29 UTC) #22
gab
So the idea is that official builds should run in whichever mode the server says ...
6 years, 10 months ago (2014-02-13 02:49:02 UTC) #23
gab
The CQ bit was checked by gab@chromium.org
6 years, 10 months ago (2014-02-13 02:50:47 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/153913009/760001
6 years, 10 months ago (2014-02-13 02:51:14 UTC) #25
commit-bot: I haz the power
Change committed as 250988
6 years, 10 months ago (2014-02-13 14:33:54 UTC) #26
fennyfanny655
5 years, 4 months ago (2015-08-21 11:53:51 UTC) #28
Message was sent while issue was closed.

          

Powered by Google App Engine
This is Rietveld 408576698