| 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 4bb5995e164aa57fbe52e797adcce246b1d4db64..09cfefc22c2a4459b717ece06ccb9d35faaa9e34 100644
|
| --- a/components/autofill/core/browser/autofill_manager.cc
|
| +++ b/components/autofill/core/browser/autofill_manager.cc
|
| @@ -1998,6 +1998,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());
|
|
|