Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: ios/chrome/browser/payments/payment_request.mm

Issue 2815763002: Prevent usage of web payments API over insecure HTTPS. (Closed)
Patch Set: Fix typo Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/payments/core/payment_request_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2a7d7ff75b9e71b67fa4852eb97d532446a5d4d2..31dcf99201ec68de5c7e207bd23f6a042f7e4d6e 100644
--- a/ios/chrome/browser/payments/payment_request.mm
+++ b/ios/chrome/browser/payments/payment_request.mm
@@ -108,13 +108,10 @@ void PaymentRequest::PopulateProfileCache() {
}
void PaymentRequest::PopulateCreditCardCache() {
- if (!payments::data_util::ParseBasicCardSupportedNetworks(
- web_payment_request_.method_data, &supported_card_networks_,
- &basic_card_specified_networks_)) {
- // TODO(crbug.com/709036): close the UI and reject the promise since the
- // data is invalid.
- return;
- }
+ // TODO(crbug.com/709036): Validate method data.
+ payments::data_util::ParseBasicCardSupportedNetworks(
+ web_payment_request_.method_data, &supported_card_networks_,
+ &basic_card_specified_networks_);
const std::vector<autofill::CreditCard*>& credit_cards_to_suggest =
personal_data_manager_->GetCreditCardsToSuggest();
« no previous file with comments | « components/payments/core/payment_request_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698