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

Issue 2036193002: Allow overriding variation parameter via chrome://flags. (Closed)

Created:
4 years, 6 months ago by jkrcal
Modified:
4 years, 6 months ago
CC:
chromium-reviews, dzhioev+watch_chromium.org, achuith+watch_chromium.org, davemoore+watch_chromium.org, asvitkine+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow overriding variation parameter via chrome://flags. Introduces a new type of FeatureEntry - FEATURE_WITH_VARIATIONS_VALUE which allows the user for a given feature to choose among predefined variations of its parameters. When defining such a feature type (using the FEATURE_WITH_VARIATIONS_VALUE_TYPE macro), one also needs to specify the trial name to which the feature belongs. A new experiment group called "AboutFlags" is selected for the trial and the parameters are associated with this group. The precedence is as follows (params for a trial are associated from the first source where they appear): command-line params (--force-fieldtrial-params=...) about:flags (added by this CL) field trial testing config server config A minor refactoring change: In FeatureEntry, renames the notion "choice" to "option" to make it clear it denotes more than just instances of the Choice struct. It has been the case before; now it is even more overloaded covering also FeatureVariations. Added a few functions to make the code less dependent on how we order the options in the UI. BUG=609059 Committed: https://crrev.com/1383d1d3c2b2696f18e2af907915fbd3da5602bd Cr-Commit-Position: refs/heads/master@{#400416}

Patch Set 1 #

Patch Set 2 : Minor polish #

Patch Set 3 : Adding a variation dependency #

Patch Set 4 : Another take #

Patch Set 5 : Minor polish #2 #

Patch Set 6 : Minor polish #3 + Adding a unittest #

Total comments: 13

Patch Set 7 : After code review #1 #

Total comments: 32

Patch Set 8 : After code review #

Total comments: 8

Patch Set 9 : Rebase #

Patch Set 10 : After code review #3 #

Patch Set 11 : Rebase #2 #

Patch Set 12 : Build deps #

Patch Set 13 : Build deps #2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -90 lines) Patch
M chrome/browser/about_flags.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags_unittest.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -2 lines 0 comments Download
M components/flags_ui/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M components/flags_ui/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/flags_ui/feature_entry.h View 1 2 3 4 5 6 7 3 chunks +71 lines, -8 lines 0 comments Download
M components/flags_ui/feature_entry.cc View 1 2 3 4 5 6 7 2 chunks +61 lines, -6 lines 0 comments Download
M components/flags_ui/feature_entry_macros.h View 1 2 3 4 5 6 7 1 chunk +10 lines, -5 lines 0 comments Download
M components/flags_ui/flags_state.h View 1 2 3 4 5 6 7 8 9 3 chunks +14 lines, -0 lines 0 comments Download
M components/flags_ui/flags_state.cc View 1 2 3 4 5 6 7 8 9 11 chunks +118 lines, -33 lines 0 comments Download
M components/flags_ui/flags_state_unittest.cc View 1 2 3 4 5 6 7 8 9 17 chunks +92 lines, -31 lines 0 comments Download
M components/flags_ui/resources/flags.html View 1 chunk +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (15 generated)
jkrcal
PTAL.
4 years, 6 months ago (2016-06-08 16:36:43 UTC) #4
Alexei Svitkine (slow)
Some initial style comments. https://codereview.chromium.org/2036193002/diff/100001/chrome/browser/about_flags_unittest.cc File chrome/browser/about_flags_unittest.cc (right): https://codereview.chromium.org/2036193002/diff/100001/chrome/browser/about_flags_unittest.cc#newcode188 chrome/browser/about_flags_unittest.cc:188: result.insert(entry.choices[j].command_line_switch); Iterating num_options times but ...
4 years, 6 months ago (2016-06-08 18:54:35 UTC) #5
jkrcal
Thanks! PTAL, again. https://codereview.chromium.org/2036193002/diff/100001/chrome/browser/about_flags_unittest.cc File chrome/browser/about_flags_unittest.cc (right): https://codereview.chromium.org/2036193002/diff/100001/chrome/browser/about_flags_unittest.cc#newcode188 chrome/browser/about_flags_unittest.cc:188: result.insert(entry.choices[j].command_line_switch); On 2016/06/08 18:54:35, Alexei Svitkine ...
4 years, 6 months ago (2016-06-09 09:55:16 UTC) #6
Alexei Svitkine (slow)
https://codereview.chromium.org/2036193002/diff/100001/chrome/browser/about_flags_unittest.cc File chrome/browser/about_flags_unittest.cc (right): https://codereview.chromium.org/2036193002/diff/100001/chrome/browser/about_flags_unittest.cc#newcode188 chrome/browser/about_flags_unittest.cc:188: result.insert(entry.choices[j].command_line_switch); On 2016/06/09 09:55:15, jkrcal wrote: > On 2016/06/08 ...
4 years, 6 months ago (2016-06-10 15:46:49 UTC) #7
jkrcal
Thanks Alexei! PTAL, again, if possible. Showing up in the MUC office sounds like a ...
4 years, 6 months ago (2016-06-14 10:04:22 UTC) #9
Alexei Svitkine (slow)
Generally looks good - have a few more comments below. Have you tested how this ...
4 years, 6 months ago (2016-06-16 09:40:57 UTC) #10
jkrcal
Thanks, Alexei! PTAL, again. Scott, could you PTAL at chrome/browser/*. https://codereview.chromium.org/2036193002/diff/140001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2036193002/diff/140001/chrome/browser/about_flags.cc#newcode1924 ...
4 years, 6 months ago (2016-06-16 14:49:17 UTC) #12
jkrcal
On 2016/06/16 14:49:17, jkrcal wrote: > Thanks, Alexei! PTAL, again. > > Scott, could you ...
4 years, 6 months ago (2016-06-16 14:50:27 UTC) #13
Alexei Svitkine (slow)
lgtm
4 years, 6 months ago (2016-06-16 15:35:04 UTC) #14
sky
LGTM
4 years, 6 months ago (2016-06-16 17:36:23 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2036193002/180001
4 years, 6 months ago (2016-06-16 17:37:56 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/82475) android_compile_dbg on ...
4 years, 6 months ago (2016-06-16 17:41:55 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2036193002/220001
4 years, 6 months ago (2016-06-17 07:20:35 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/builds/22713) ios-simulator-gn on ...
4 years, 6 months ago (2016-06-17 07:23:24 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2036193002/240001
4 years, 6 months ago (2016-06-17 07:33:07 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/128946)
4 years, 6 months ago (2016-06-17 08:07:47 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2036193002/240001
4 years, 6 months ago (2016-06-17 12:11:07 UTC) #30
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 6 months ago (2016-06-17 12:41:10 UTC) #32
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 12:42:27 UTC) #34
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/1383d1d3c2b2696f18e2af907915fbd3da5602bd
Cr-Commit-Position: refs/heads/master@{#400416}

Powered by Google App Engine
This is Rietveld 408576698