Skip to content

Commit 4f2b2c1

Browse files
Henrique Nakashimachromeos-ci-prod
authored andcommitted
[Android] Fix CommandLineFlags#ensureInitialized
--enable-features and --disable-features were being effectively ignored. Bug: None Change-Id: Ie5eda21530d3eb04d13d10336e39ec0ad82a272e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5974133 Reviewed-by: Andrew Grieve <agrieve@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Cr-Commit-Position: refs/heads/main@{#1375367} CrOS-Libchrome-Original-Commit: 26c72d45738f004a9c74871a397483fb93e4b0e8
1 parent ac127ca commit 4f2b2c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/test/android/javatests/src/org/chromium/base/test/util/CommandLineFlags.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static void ensureInitialized() {
7373
// Store features from initial command-line for proper merging later.
7474
CommandLine commandLine = CommandLine.getInstance();
7575
String origEnabledFeatures = commandLine.getSwitchValue(ENABLE_FEATURES, "");
76-
String origDisabledFeatures = commandLine.getSwitchValue(ENABLE_FEATURES, "");
76+
String origDisabledFeatures = commandLine.getSwitchValue(DISABLE_FEATURES, "");
7777
sOrigFeatures =
7878
collectFeaturesFromFlags(
7979
List.of(

0 commit comments

Comments
 (0)