Skip to content

Commit 0207b0f

Browse files
Henrique Nakashimacopybara-github
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 <[email protected]> Commit-Queue: Henrique Nakashima <[email protected]> Cr-Commit-Position: refs/heads/main@{#1375367} NOKEYCHECK=True GitOrigin-RevId: 26c72d45738f004a9c74871a397483fb93e4b0e8
1 parent e63ce2a commit 0207b0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)