| 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 38adcb80c46f356fb931fee498dd5aa7ebdca3c4..2bce732dd21d88a53fb4b611fe1d24d9838d502c 100644
|
| --- a/components/autofill/core/browser/autofill_manager.cc
|
| +++ b/components/autofill/core/browser/autofill_manager.cc
|
| @@ -1993,6 +1993,14 @@ std::vector<Suggestion> AutofillManager::GetCreditCardSuggestions(
|
| std::vector<Suggestion> suggestions =
|
| personal_data_->GetCreditCardSuggestions(
|
| type, SanitizeCreditCardFieldValue(field.value));
|
| + const std::vector<CreditCard*> cards_to_suggest =
|
| + personal_data_->GetCreditCardsToSuggest();
|
| + for (const CreditCard* credit_card : cards_to_suggest) {
|
| + if (!credit_card->bank_name().empty()) {
|
| + credit_card_form_event_logger_->SetBankNameAvailable();
|
| + break;
|
| + }
|
| + }
|
| for (size_t i = 0; i < suggestions.size(); i++) {
|
| suggestions[i].frontend_id =
|
| MakeFrontendID(suggestions[i].backend_id, std::string());
|
|
|