Change information
Commit message:
[BNPL-Tabs][Clank] Pass BNPL suggestions when tabs flag is enabled
This CL updates `ShouldCreateBnplSuggestionForTouchToFill` to
bypass the check that requires the credit card number field to
be empty, provided that `kAutofillEnablePayNowPayLaterTabs` is enabled.
Previously, BNPL suggestions were always excluded from
Touch-to-Fill if the card number field was non-empty (due to
privacy restrictions when AI amount extraction is enabled). With
the Pay Now Pay Later tabs feature enabled, we want to allow
Passing the BNPL option even in this case because non-empty
credit card number field error will be on the Pay Later tab.
Design: go/clank-pay-now-pay-later-tabs
Bug: 526728883, 526718267
Change-Id: I399d92808006462b775f4e7d72ffc779fdc626f9
Cr-Commit-Position: refs/heads/main@{#1652115}
Files:
- M components/autofill/core/browser/suggestions/payments/credit_card_suggestion_generator_unittest.cc
- M components/autofill/core/browser/suggestions/payments/payments_suggestion_generator_util.cc
Change size: S
Delta: 2 files changed, 36 insertions(+), 1 deletion(-)
Branch: refs/heads/main
Submit Requirements:
Code-Review: +1 by Vinny Persky