Commit 354304bc authored by estade's avatar estade Committed by Commit bot

Make single-click autofill default on Android

BUG=427660

Review URL: https://codereview.chromium.org/869433002

Cr-Commit-Position: refs/heads/master@{#312727}
parent 6fe37681
......@@ -316,8 +316,17 @@ void AutofillAgent::FormControlElementClicked(
options.display_warning_if_disabled = true;
options.show_full_suggestion_list = element.isAutofilled();
if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableSingleClickAutofill)) {
#if defined(OS_ANDROID)
bool single_click_autofill =
!base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableSingleClickAutofill);
#else
bool single_click_autofill =
base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableSingleClickAutofill);
#endif
if (!single_click_autofill) {
// Show full suggestions when clicking on an already-focused form field. On
// the initial click (not focused yet), only show password suggestions.
#if defined(OS_ANDROID)
......
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