Commit 50566bd6 authored by Matthew Jones's avatar Matthew Jones Committed by Commit Bot

Suppress autofill on touchless devices

Bug: 971868
Change-Id: Icdfba2d851058b961cec6e7546d3c6fb0123fed1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1674615Reviewed-by: default avatarRouslan Solomakhin <rouslan@chromium.org>
Commit-Queue: Matthew Jones <mdjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#672106}
parent 033240b1
......@@ -17,6 +17,7 @@ import org.chromium.chrome.R;
import org.chromium.chrome.browser.ChromeActivity;
import org.chromium.chrome.browser.ChromeFeatureList;
import org.chromium.chrome.browser.ResourceId;
import org.chromium.chrome.browser.util.FeatureUtilities;
import org.chromium.components.autofill.AutofillDelegate;
import org.chromium.components.autofill.AutofillPopup;
import org.chromium.components.autofill.AutofillSuggestion;
......@@ -40,7 +41,8 @@ public class AutofillPopupBridge implements AutofillDelegate, DialogInterface.On
WindowAndroid windowAndroid) {
mNativeAutofillPopup = nativeAutofillPopupViewAndroid;
Activity activity = windowAndroid.getActivity().get();
if (activity == null || notEnoughScreenSpace(activity)) {
if (activity == null || notEnoughScreenSpace(activity)
|| FeatureUtilities.isNoTouchModeEnabled()) {
mAutofillPopup = null;
mContext = null;
} else {
......
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