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

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

Issue 2851383002: Verify behavior of PaymentRequest constructor. (Closed)
Patch Set: Comments 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-constructor.https.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/payments/content/payment_details_validation.cc
diff --git a/components/payments/content/payment_details_validation.cc b/components/payments/content/payment_details_validation.cc
index c894459ba1f3aca5aaf487a05fd1e3712ce00f0c..1edd6fb1fa56e2f7138a384bf4264a3fc60aa213 100644
--- a/components/payments/content/payment_details_validation.cc
+++ b/components/payments/content/payment_details_validation.cc
@@ -20,11 +20,6 @@ bool validateShippingOptionOrPaymentItem(
const T& item,
const payments::mojom::PaymentItemPtr& total,
std::string* error_message) {
- if (item->label.empty()) {
- *error_message = "Item label required";
- return false;
- }
-
if (!item->amount) {
*error_message = "Currency amount required";
return false;
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-constructor.https.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698