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

Issue 2030193002: Add 'total' field to 'PaymentDetails'. (Closed)

Created:
4 years, 6 months ago by please use gerrit instead
Modified:
4 years, 6 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin (slow to review), dglazkov+blink, haraken, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add 'total' field to 'PaymentDetails'. This patch adds the 'total' field to 'PaymentDetails' and makes 'displayItems' field optional. Additional tests in this patch: * 'total' is required. * 'total.value' cannot start with '-'. * Undefined and empty 'displayItems' are OK. https://w3c.github.io/browser-payment-api/specs/paymentrequest.html#paymentdetails-dictionary https://github.com/w3c/browser-payment-api/commit/9ef1dd251089299fe3a50df6ff77f02821f7663f This patch also removes the no-longer-used 'id' from display items in several tests. BUG=616568 Committed: https://crrev.com/11f37c673b5fdbf558b295eb2749df391852e5d9 Cr-Commit-Position: refs/heads/master@{#397867}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Rebase, address comments, and add more tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+521 lines, -258 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentApp.java View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentApp.java View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentInstrument.java View 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java View 1 13 chunks +178 lines, -95 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentInformation.java View 3 chunks +6 lines, -9 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestSection.java View 1 2 chunks +10 lines, -16 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java View 5 chunks +12 lines, -11 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/payments/ui/ShoppingCart.java View 1 chunk +62 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/android/payments/dynamic_shipping.js View 1 2 chunks +8 lines, -18 lines 0 comments Download
M chrome/test/data/android/payments/free_shipping.js View 1 1 chunk +1 line, -5 lines 0 comments Download
M chrome/test/data/android/payments/no_shipping.js View 1 1 chunk +3 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/payments/payment-request-in-iframe.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/payments/payment-request-interface.html View 1 4 chunks +47 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/payments/promises-keep-request-alive.html View 1 1 chunk +3 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentDetails.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp View 1 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.cpp View 1 2 chunks +61 lines, -38 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequestDetailsTest.cpp View 1 8 chunks +95 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp View 1 9 chunks +11 lines, -33 lines 0 comments Download
M third_party/WebKit/public/platform/modules/payments/payment_request.mojom View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
please use gerrit instead
dfalcantara@: ptal Java. mek@: ptal WebKit. tsepez@: ptal payment_request.mojom.
4 years, 6 months ago (2016-06-02 22:37:09 UTC) #5
Marijn Kruisselbrink
lgtm
4 years, 6 months ago (2016-06-02 22:55:07 UTC) #6
Tom Sepez
mojom lgtm
4 years, 6 months ago (2016-06-02 23:45:00 UTC) #7
gone
Java lgtm. https://chromiumcodereview.appspot.com/2030193002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java (right): https://chromiumcodereview.appspot.com/2030193002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode56 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:56: PaymentApp.InstrumentsCallback, Don't indent like this in Java-land. ...
4 years, 6 months ago (2016-06-03 17:07:41 UTC) #8
please use gerrit instead
Sending to cq. https://chromiumcodereview.appspot.com/2030193002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java (right): https://chromiumcodereview.appspot.com/2030193002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode56 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:56: PaymentApp.InstrumentsCallback, On 2016/06/03 17:07:41, dfalcantara wrote: ...
4 years, 6 months ago (2016-06-03 22:04:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030193002/60001
4 years, 6 months ago (2016-06-03 23:29:56 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 6 months ago (2016-06-04 00:51:30 UTC) #14
commit-bot: I haz the power
4 years, 6 months ago (2016-06-04 00:54:19 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/11f37c673b5fdbf558b295eb2749df391852e5d9
Cr-Commit-Position: refs/heads/master@{#397867}

Powered by Google App Engine
This is Rietveld 408576698