| Index: components/autofill/core/browser/autofill_manager.cc
|
| diff --git a/components/autofill/core/browser/autofill_manager.cc b/components/autofill/core/browser/autofill_manager.cc
|
| index 505a629410c19b43d4d1a5af59dbeeda915c7fd7..bfe70109bdfdf2af356669fd64e52a965a8e3597 100644
|
| --- a/components/autofill/core/browser/autofill_manager.cc
|
| +++ b/components/autofill/core/browser/autofill_manager.cc
|
| @@ -601,9 +601,11 @@ void AutofillManager::OnQueryFormFieldAutofill(int query_id,
|
|
|
| // If there are no Autofill suggestions, consider showing Autocomplete
|
| // suggestions. We will not show Autocomplete suggestions for a field that
|
| - // specifies autocomplete=off (or an unrecognized type) or a field that we
|
| - // think is a credit card expiration, cvc or number.
|
| - if (suggestions.empty() && field.should_autocomplete &&
|
| + // specifies autocomplete=off (or an unrecognized type), a field for which we
|
| + // will show the credit card signin promo, or a field that we think is a
|
| + // credit card expiration, cvc or number.
|
| + if (suggestions.empty() && !ShouldShowCreditCardSigninPromo(form, field) &&
|
| + field.should_autocomplete &&
|
| !(autofill_field &&
|
| (IsCreditCardExpirationType(autofill_field->Type().GetStorableType()) ||
|
| autofill_field->Type().html_type() == HTML_TYPE_UNRECOGNIZED ||
|
|
|