Commit 0b1c95dc authored by Victor Hsieh's avatar Victor Hsieh Committed by Commit Bot

Add a private autotest API to request adb sideloading

TEST=calling the API from Tast, saw expected behavior
BUG=chromium:893332

Change-Id: Ie44376a1c2e5817a863b359550d1f0eade6e8cb0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1918301Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Commit-Queue: Victor Hsieh <victorhsieh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#718257}
parent 9c8b354f
......@@ -366,6 +366,14 @@ std::unique_ptr<bool> ConvertMojomOptionalBool(
std::string SetWhitelistedPref(Profile* profile,
const std::string& pref_name,
const base::Value& value) {
// Special case for the preference that is stored in the "Local State"
// profile.
if (pref_name == prefs::kEnableAdbSideloadingRequested) {
DCHECK(value.is_bool());
g_browser_process->local_state()->Set(pref_name, value);
return std::string();
}
if (pref_name == chromeos::assistant::prefs::kAssistantEnabled ||
pref_name == chromeos::assistant::prefs::kAssistantHotwordEnabled) {
DCHECK(value.is_bool());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment