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

Issue 2968793002: Reland of Change ScopedFeatureList to overrides FeatureList not reset (Closed)

Created:
3 years, 5 months ago by chaopeng
Modified:
3 years, 5 months ago
CC:
chromium-reviews, danakj+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of Change ScopedFeatureList to overrides FeatureList not reset The current situation is that using ScopedFeatureList resets to an empty feature list and then enables/disables an explicit list of features. That's never what you want for browser tests (or other higher-level tests) since it effectively overrides higher-level test configurations (e.g. those in fieldtrial_testing_config.json, or a bot set up to specifically test a feature). In this patch: 1. Keep SFL::Init, SFL::InitWithFeatureList, SFL::InitFromCommandLine reset to empty list but add warning to remind developer should use them with care. 2. Change SFL::InitAndEnableFeature, SFL::InitAndDisableFeature and SFL::InitWithFeatures to not reset but override current FeatureList with given enables/disables. We also add unit tests for ScopedFeatureList. BUG=713390 Original-Review-Url: https://codereview.chromium.org/2834583002 Review-Url: https://codereview.chromium.org/2968793002 Cr-Commit-Position: refs/heads/master@{#484921} Committed: https://chromium.googlesource.com/chromium/src/+/e86c74ee8e06e2a7538b273efe5e4f17fc0c38f9

Patch Set 1 #

Patch Set 2 : add depends #

Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -25 lines) Patch
M base/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M base/test/scoped_feature_list.h View 1 1 chunk +24 lines, -11 lines 0 comments Download
M base/test/scoped_feature_list.cc View 1 3 chunks +93 lines, -14 lines 0 comments Download
A base/test/scoped_feature_list_unittest.cc View 1 chunk +188 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 26 (17 generated)
chaopeng
Created Reland of Change ScopedFeatureList to overrides FeatureList not reset
3 years, 5 months ago (2017-06-30 19:34:18 UTC) #1
Ilya Sherman
LGTM
3 years, 5 months ago (2017-07-03 02:32:42 UTC) #10
Lei Zhang
lgtm, but can you write a proper CL description? (AKA commit message) The revert of ...
3 years, 5 months ago (2017-07-05 18:31:50 UTC) #11
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/2968793002/130001
3 years, 5 months ago (2017-07-06 19:30:07 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/214598)
3 years, 5 months ago (2017-07-06 20:07:47 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/2968793002/130001
3 years, 5 months ago (2017-07-07 01:09:27 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/215137)
3 years, 5 months ago (2017-07-07 02:14:56 UTC) #20
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/2968793002/130001
3 years, 5 months ago (2017-07-07 13:51:49 UTC) #22
commit-bot: I haz the power
3 years, 5 months ago (2017-07-07 14:44:53 UTC) #26
Message was sent while issue was closed.
Committed patchset #2 (id:130001) as
https://chromium.googlesource.com/chromium/src/+/e86c74ee8e06e2a7538b273efe5e...

Powered by Google App Engine
This is Rietveld 408576698