[BlinkGenPropertyTrees] Fully control blink flag via feature setting
When BlinkGenPropertyTrees was moved from status=experimental to status=stable in https://crrev.com/633410, there became no way to disable the feature with chrome's feature setting. This is because runtime_features.cc had this bad logic: if (base::FeatureList::IsEnabled(blink::features::kBlinkGenPropertyTrees)) WebRuntimeFeatures::EnableFeatureFromString("BlinkGenPropertyTrees", true); Because finch uses feature settings, this affects the control group of the BlinkGenPropertyTrees finch trial. This patch updates the runtime enabled feature to be fully controlled by the chrome feature setting. Tested the following scenarios: +------------------------------------------------+-----------+------------+ | flag | pre-patch | post-patch | +------------------------------------------------+-----------+------------+ | no flag | BGPT on | BGPT on | | --enable-features=BlinkGenPropertyTrees | BGPT on | BGPT on | | --disable-features=BlinkGenPropertyTrees | BGPT on | BGPT off | | --enable-blink-features=BlinkGenPropertyTrees | BGPT on | BPGT on | | --disable-blink-features=BlinkGenPropertyTrees | BGPT off | BGPT off | +------------------------------------------------+-----------+------------+ Bug: 935195 Change-Id: Iba560582e3b2b2377f6b4af31a4c6263215467fa Reviewed-on: https://chromium-review.googlesource.com/c/1485491Reviewed-by:Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Dmitry Gozman <dgozman@chromium.org> Auto-Submit: Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#635262}
Showing
Please register or sign in to comment