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

Issue 2962963002: 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 (patchset #1 id:1 of https://codereview.chromium.org/2850073002/ ) Reason for revert: The ASAN failure is fixed at https://codereview.chromium.org/2874693002/. This patch is ready for reland. Original issue's description: > Revert of Change ScopedFeatureList to overrides FeatureList not reset (patchset #6 id:140001 of https://codereview.chromium.org/2834583002/ ) > > Reason for revert: > Mac ASAN bots reporting use-after-free errors. > > Original issue's description: > > 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 > > > > Review-Url: https://codereview.chromium.org/2834583002 > > Cr-Commit-Position: refs/heads/master@{#468210} > > Committed: https://chromium.googlesource.com/chromium/src/+/9c04ed553bd7abe820a6a93c5e8981e6738881a9 > > TBR=isherman@chromium.org,asvitkine@chromium.org,thakis@chromium.org,chaopeng@chromium.org > # Not skipping CQ checks because original CL landed more than 1 days ago. > BUG=713390 > > Review-Url: https://codereview.chromium.org/2850073002 > Cr-Commit-Position: refs/heads/master@{#468263} > Committed: https://chromium.googlesource.com/chromium/src/+/6c14f269fb196627c72a810205488d694b63a7d5 TBR=isherman@chromium.org,asvitkine@chromium.org,thakis@chromium.org,thestig@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=713390 Review-Url: https://codereview.chromium.org/2962963002 Cr-Commit-Position: refs/heads/master@{#483631} Committed: https://chromium.googlesource.com/chromium/src/+/04afdfd65fe04ef71fa9918d8fea0f2bc6356836

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -25 lines) Patch
M base/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M base/test/scoped_feature_list.h View 1 chunk +24 lines, -11 lines 0 comments Download
M base/test/scoped_feature_list.cc View 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

Messages

Total messages: 20 (10 generated)
chaopeng
Created Reland of Change ScopedFeatureList to overrides FeatureList not reset
3 years, 5 months ago (2017-06-28 19:22:18 UTC) #2
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/2962963002/1
3 years, 5 months ago (2017-06-28 19:22:42 UTC) #3
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 5 months ago (2017-06-28 19:22:44 UTC) #5
chaopeng
The ASAN failure is fixed at https://codereview.chromium.org/2874693002/. Want to reland this CL. PTAL. Thank you.
3 years, 5 months ago (2017-06-28 19:27:48 UTC) #6
Ilya Sherman
lgtm
3 years, 5 months ago (2017-06-28 19:42:09 UTC) #8
Lei Zhang
lgtm
3 years, 5 months ago (2017-06-30 03:39:16 UTC) #14
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/2962963002/1
3 years, 5 months ago (2017-06-30 03:39:33 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/04afdfd65fe04ef71fa9918d8fea0f2bc6356836
3 years, 5 months ago (2017-06-30 04:47:40 UTC) #18
Timothy Loh
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2964623002/ by timloh@chromium.org. ...
3 years, 5 months ago (2017-06-30 06:02:16 UTC) #19
findit-for-me
3 years, 5 months ago (2017-07-01 14:58:35 UTC) #20
Message was sent while issue was closed.
Findit (https://goo.gl/kROfz5) identified this CL at revision 483631 as the
culprit for
failures in the build cycles as shown on:
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...

Powered by Google App Engine
This is Rietveld 408576698