Commit ea477aec authored by Yash Malik's avatar Yash Malik Committed by Commit Bot

VR: Disable autofill suggestion in VR

This CL builds on comments from:
  https://chromium-review.googlesource.com/c/chromium/src/+/934621

Bug: 808456
Change-Id: I02cbee03f1b7f4214b43fe655453b8057a680cdb
Reviewed-on: https://chromium-review.googlesource.com/940461Reviewed-by: default avatarSebastien Seguin-Gagnon <sebsg@chromium.org>
Commit-Queue: Yash Malik <ymalik@chromium.org>
Cr-Commit-Position: refs/heads/master@{#539934}
parent 79c89bfa
......@@ -61,6 +61,7 @@ void AutocompleteHistoryManager::OnGetAutocompleteSuggestions(
query_id_ = query_id;
if (!autofill_client_->IsAutocompleteEnabled() ||
!autofill_client_->IsAutofillSupported() ||
form_control_type == "textarea" ||
IsInAutofillSuggestionsDisabledExperiment()) {
SendSuggestions(nullptr);
......
......@@ -640,7 +640,8 @@ void AutofillManager::OnQueryFormFieldAutofillImpl(
}
// Show a "Payment not secure" message.
if (!is_context_secure && is_filling_credit_card && is_http_warning_enabled) {
if (client_->IsAutofillSupported() && !is_context_secure &&
is_filling_credit_card && is_http_warning_enabled) {
#if !defined(OS_ANDROID)
if (!suggestions.empty()) {
suggestions.insert(suggestions.begin(), Suggestion());
......
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