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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java

Issue 1994913002: PaymentRequest: Remove id attribute from PaymentItem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/Source/modules/payments/PaymentDetailsTestHelper.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java
index 5f3f04bf9955fe3c38af54b26a6d626e1c9a272e..64a6bf1585a0422cbedcd809138b8937dc4ace23 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java
@@ -281,8 +281,8 @@ public class PaymentRequestImpl implements PaymentRequest, PaymentRequestUI.Clie
for (int i = 0; i < details.items.length; i++) {
PaymentItem item = details.items[i];
// "id", "label", "currencyCode", and "value" should be non-empty.
- if (item == null || TextUtils.isEmpty(item.id) || TextUtils.isEmpty(item.label)
- || item.amount == null || TextUtils.isEmpty(item.amount.currencyCode)
+ if (item == null || TextUtils.isEmpty(item.label) || item.amount == null
+ || TextUtils.isEmpty(item.amount.currencyCode)
|| TextUtils.isEmpty(item.amount.value)) {
return null;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698