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

Unified Diff: components/payments/content/payment_request_spec.cc

Issue 2866623003: PaymentRequest.canMakePayment() query quota on desktop. (Closed)
Patch Set: frame Created 3 years, 7 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: components/payments/content/payment_request_spec.cc
diff --git a/components/payments/content/payment_request_spec.cc b/components/payments/content/payment_request_spec.cc
index a5addb5c01b5be199831bdd9b144b91d9f84c47f..2f7a7e41e55eb19645f6d098ab7058a7aaf40cf6 100644
--- a/components/payments/content/payment_request_spec.cc
+++ b/components/payments/content/payment_request_spec.cc
@@ -143,6 +143,11 @@ void PaymentRequestSpec::PopulateValidatedMethodData(
method_data_vector.reserve(method_data_mojom.size());
for (const mojom::PaymentMethodDataPtr& method_data_entry :
method_data_mojom) {
+ for (const std::string& method : method_data_entry->supported_methods) {
+ stringified_method_data_[method].insert(
+ method_data_entry->stringified_data);
+ }
+
PaymentMethodData method_data;
method_data.supported_methods = method_data_entry->supported_methods;
// Transfer the supported basic card networks.
« no previous file with comments | « components/payments/content/payment_request_spec.h ('k') | components/payments/content/payment_request_web_contents_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698