Index: ios/chrome/browser/payments/payment_request.mm |
diff --git a/ios/chrome/browser/payments/payment_request.mm b/ios/chrome/browser/payments/payment_request.mm |
index 27463c69ffd2879c4d347e6f97235525b5aaca8a..406ba1e571fe95afe59983eb71142e9db87b298b 100644 |
--- a/ios/chrome/browser/payments/payment_request.mm |
+++ b/ios/chrome/browser/payments/payment_request.mm |
@@ -12,7 +12,6 @@ |
#include "base/strings/utf_string_conversions.h" |
#include "components/autofill/core/browser/autofill_data_util.h" |
#include "components/autofill/core/browser/autofill_profile.h" |
-#include "components/autofill/core/browser/credit_card.h" |
#include "components/autofill/core/browser/personal_data_manager.h" |
#include "components/autofill/core/browser/region_data_loader_impl.h" |
#include "components/autofill/core/browser/validation.h" |
@@ -287,6 +286,9 @@ void PaymentRequest::PopulateCreditCardCache() { |
web_payment_request_.method_data, &supported_card_networks_, |
&basic_card_specified_networks_); |
+ payments::data_util::ParseSupportedCardTypes(web_payment_request_.method_data, |
+ &supported_card_types_set_); |
+ |
const std::vector<autofill::CreditCard*>& credit_cards_to_suggest = |
personal_data_manager_->GetCreditCardsToSuggest(); |
// Return early if the user has no stored credit cards. |