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

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

Issue 2815763002: Prevent usage of web payments API over insecure HTTPS. (Closed)
Patch Set: Ganggui's comment. 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
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.
palmer 2017/04/17 19:30:06 How will the caller distinguish empty data from in
please use gerrit instead 2017/04/17 20:06:10 The renderer should have validated all data before
+ 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();

Powered by Google App Engine
This is Rietveld 408576698