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

Issue 2707013002: [chrome://flags] Let features override params in the same trial (Closed)

Created:
3 years, 10 months ago by jkrcal
Modified:
3 years, 9 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, vitaliii
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[chrome://flags] Let features override params in the same trial Previously, one could specify field trial params for a feature in chrome://flags. However, one needed to specify some field trial name even when reading the params only by feature name. Furthermore, overriding field trial params for two different features that used the same field trial name did not work. This CL adds support for merging params for the same field trial from several FeatureEntries. Additionally, it allows to leave the field trial name unspecified (using a default field trial name, instead). BUG=690450 Review-Url: https://codereview.chromium.org/2707013002 Cr-Commit-Position: refs/heads/master@{#454215} Committed: https://chromium.googlesource.com/chromium/src/+/7a3554ebf47fa89ad775616fc99ff4b106deb584

Patch Set 1 #

Total comments: 10

Patch Set 2 : Comments #1 #

Total comments: 2

Patch Set 3 : Comments #2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -46 lines) Patch
M chrome/browser/about_flags.cc View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M components/flags_ui/feature_entry.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M components/flags_ui/feature_entry_macros.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/flags_ui/flags_state.cc View 1 2 chunks +49 lines, -27 lines 0 comments Download
M components/flags_ui/flags_state_unittest.cc View 1 9 chunks +58 lines, -14 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (9 generated)
jkrcal
Alexei, could you PTAL?
3 years, 10 months ago (2017-02-21 14:06:12 UTC) #2
vitaliii
https://codereview.chromium.org/2707013002/diff/1/components/flags_ui/flags_state.cc File components/flags_ui/flags_state.cc (right): https://codereview.chromium.org/2707013002/diff/1/components/flags_ui/flags_state.cc#newcode464 components/flags_ui/flags_state.cc:464: DCHECK(insert_result.second) Drive-by nit: As of now the message looks ...
3 years, 10 months ago (2017-02-21 15:43:27 UTC) #3
jkrcal
Alexei, friendly ping!
3 years, 10 months ago (2017-02-24 09:38:42 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/2707013002/diff/1/components/flags_ui/feature_entry_macros.h File components/flags_ui/feature_entry_macros.h (right): https://codereview.chromium.org/2707013002/diff/1/components/flags_ui/feature_entry_macros.h#newcode35 components/flags_ui/feature_entry_macros.h:35: #define FEATURE_WITH_VARIATIONS_VALUE_TYPE(feature, feature_variations, \ Separately, I think we should ...
3 years, 10 months ago (2017-02-24 16:18:21 UTC) #5
jkrcal
Thanks, Alexei! Answers / questions below. https://codereview.chromium.org/2707013002/diff/1/components/flags_ui/feature_entry_macros.h File components/flags_ui/feature_entry_macros.h (right): https://codereview.chromium.org/2707013002/diff/1/components/flags_ui/feature_entry_macros.h#newcode35 components/flags_ui/feature_entry_macros.h:35: #define FEATURE_WITH_VARIATIONS_VALUE_TYPE(feature, feature_variations, ...
3 years, 9 months ago (2017-02-27 08:04:37 UTC) #6
Alexei Svitkine (slow)
https://codereview.chromium.org/2707013002/diff/1/components/flags_ui/feature_entry_macros.h File components/flags_ui/feature_entry_macros.h (right): https://codereview.chromium.org/2707013002/diff/1/components/flags_ui/feature_entry_macros.h#newcode35 components/flags_ui/feature_entry_macros.h:35: #define FEATURE_WITH_VARIATIONS_VALUE_TYPE(feature, feature_variations, \ On 2017/02/27 08:04:36, jkrcal wrote: ...
3 years, 9 months ago (2017-02-28 18:45:35 UTC) #7
jkrcal
Thanks! PTAL, again. https://codereview.chromium.org/2707013002/diff/1/components/flags_ui/feature_entry_macros.h File components/flags_ui/feature_entry_macros.h (right): https://codereview.chromium.org/2707013002/diff/1/components/flags_ui/feature_entry_macros.h#newcode35 components/flags_ui/feature_entry_macros.h:35: #define FEATURE_WITH_VARIATIONS_VALUE_TYPE(feature, feature_variations, \ On 2017/02/28 ...
3 years, 9 months ago (2017-03-01 18:35:53 UTC) #8
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2707013002/diff/20001/components/flags_ui/feature_entry.h File components/flags_ui/feature_entry.h (right): https://codereview.chromium.org/2707013002/diff/20001/components/flags_ui/feature_entry.h#newcode169 components/flags_ui/feature_entry.h:169: // their feature and the trial name is ...
3 years, 9 months ago (2017-03-01 22:24:37 UTC) #13
jkrcal
Thanks! https://codereview.chromium.org/2707013002/diff/20001/components/flags_ui/feature_entry.h File components/flags_ui/feature_entry.h (right): https://codereview.chromium.org/2707013002/diff/20001/components/flags_ui/feature_entry.h#newcode169 components/flags_ui/feature_entry.h:169: // their feature and the trial name is ...
3 years, 9 months ago (2017-03-02 08:13:13 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2707013002/40001
3 years, 9 months ago (2017-03-02 08:13:15 UTC) #17
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 09:03:03 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/7a3554ebf47fa89ad775616fc99f...

Powered by Google App Engine
This is Rietveld 408576698