Support reading command line options for non-rooted devices for testing
This CL add a new flag "Enable command line on non-rooted devices" to
chrome://flags. If changed, it will set a flag in Chrome SharedPreferences.
And when CommandLineInitUtil starts, it checks whether an alternative
command line file could be used when:
1. The current build is "eng" or "userdebug" or
2. adb is enable and this is the debug app or
3. The flag is enable in SharedPreferences.
Bug: 784947
Change-Id: I0ee0d2eadbc8b2f1b49b5e5959f7e72f8feda80d
Reviewed-on: https://chromium-review.googlesource.com/861285
Reviewed-by: Yaron Friedman <[email protected]>
Reviewed-by: Ted Choc <[email protected]>
Reviewed-by: Luke Halliwell <[email protected]>
Commit-Queue: Lei Tian <[email protected]>
Cr-Commit-Position: refs/heads/master@{#539909}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 91e035d..63dc0065 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -3095,6 +3095,13 @@
"MemoryAblation")},
#if defined(OS_ANDROID)
+ {"enable-command-line-on-non-rooted-devices",
+ flag_descriptions::kEnableCommandLineOnNonRootedName,
+ flag_descriptions::kEnableCommandLineOnNoRootedDescription, kOsAndroid,
+ FEATURE_VALUE_TYPE(chrome::android::kCommandLineOnNonRooted)},
+#endif // OS_ANDROID
+
+#if defined(OS_ANDROID)
{"enable-custom-context-menu",
flag_descriptions::kEnableCustomContextMenuName,
flag_descriptions::kEnableCustomContextMenuDescription, kOsAndroid,