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 2f6bc47798872572c56d91bfe157b1087f16b86f..5442279e122d7a100cd5bdbb5d8e2e2c29b93143 100644 |
--- a/ios/chrome/browser/payments/payment_request.mm |
+++ b/ios/chrome/browser/payments/payment_request.mm |
@@ -6,6 +6,7 @@ |
#include "base/containers/adapters.h" |
#include "base/memory/ptr_util.h" |
+#include "base/stl_util.h" |
#include "base/strings/utf_string_conversions.h" |
#include "components/autofill/core/browser/autofill_data_util.h" |
#include "components/autofill/core/browser/autofill_profile.h" |
@@ -207,9 +208,7 @@ void PaymentRequest::PopulateCreditCardCache() { |
std::string spec_issuer_network = |
autofill::data_util::GetPaymentRequestData(credit_card->network()) |
.basic_card_issuer_network; |
- if (std::find(supported_card_networks_.begin(), |
- supported_card_networks_.end(), |
- spec_issuer_network) != supported_card_networks_.end()) { |
+ if (base::ContainsValue(supported_card_networks_, spec_issuer_network)) { |
credit_card_cache_.push_back( |
base::MakeUnique<autofill::CreditCard>(*credit_card)); |
} |