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 ed9915a7532917eef08021661276d8d9f2dd7efc..e474718e33c9dcae39d905abb17010ef2db3b947 100644 |
--- a/components/autofill/core/browser/autofill_manager.cc |
+++ b/components/autofill/core/browser/autofill_manager.cc |
@@ -1992,6 +1992,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()); |