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

Issue 2373103002: [Web Payments] Common Payments validation (Closed)

Created:
4 years, 2 months ago by Kevin Bailey
Modified:
4 years, 1 month ago
CC:
Aaron Boodman, abarth-chromium, agrieve+watch_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Web Payments] Common Payments validation Provides Payment Validation JNI interface to Java(Android). The interface is also available to Views, but Blink still uses existing validation routines due to type conflicts (which we hope to resolve.) This is a follow up to 2373103002, which solely moved the Mojo file from Blink to components/ BUG=659644 Committed: https://crrev.com/be5499627776990fbf5ed4af9538f6aff414eaac Cr-Commit-Position: refs/heads/master@{#429685}

Patch Set 1 #

Patch Set 2 : Working, and some clean up #

Patch Set 3 : Linting #

Patch Set 4 : Put JNI stuff together #

Patch Set 5 : Moved .mojom file to components #

Patch Set 6 : Move dependency; fix link error #

Patch Set 7 : Rebase #

Patch Set 8 : Split off moving Mojo file #

Total comments: 21

Patch Set 9 : Some responses #

Patch Set 10 : Moved JNI registration #

Patch Set 11 : Rebase and DEPS file #

Patch Set 12 : Deps #

Patch Set 13 : Deps 2 #

Total comments: 8

Patch Set 14 : More responses #

Patch Set 15 : Deps and new field #

Total comments: 22

Patch Set 16 : Consolidate validation #

Patch Set 17 : Unit tests #

Patch Set 18 : Handle empty system #

Total comments: 6

Patch Set 19 : Better validation #

Patch Set 20 : Rebase #

Patch Set 21 : Added dep #

Patch Set 22 : Fixed validator #

Patch Set 23 : Fixed validator 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+497 lines, -148 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +10 lines, -70 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentValidator.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +2 lines, -0 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M components/payments/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +28 lines, -0 lines 0 comments Download
A + components/payments/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 chunks +-1 lines, --1 lines 0 comments Download
A components/payments/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +24 lines, -0 lines 0 comments Download
A + components/payments/android/DEPS View 1 2 3 4 5 6 7 8 9 10 14 0 chunks +-1 lines, --1 lines 0 comments Download
A components/payments/android/payments_jni_registrar.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +12 lines, -0 lines 0 comments Download
A components/payments/android/payments_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 1 chunk +36 lines, -0 lines 0 comments Download
A components/payments/payment_details_validation.h View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -0 lines 0 comments Download
A components/payments/payment_details_validation.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +189 lines, -0 lines 0 comments Download
M components/payments/payment_request.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +6 lines, -0 lines 0 comments Download
A components/payments/payments_validators.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +59 lines, -0 lines 0 comments Download
A + components/payments/payments_validators.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 9 chunks +41 lines, -42 lines 0 comments Download
A + components/payments/payments_validators_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +41 lines, -38 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (30 generated)
Kevin Bailey
Here is the Payment validation factorization omnibus CL. It moves the mojom file to a ...
4 years, 2 months ago (2016-10-07 16:22:56 UTC) #3
please use gerrit instead
On 2016/10/07 16:22:56, Kevin Bailey wrote: > If the CL is too big, it could ...
4 years, 2 months ago (2016-10-10 15:20:38 UTC) #4
Kevin Bailey
This CL now only has the validation code migration. Java reaches it through Mojo serialization ...
4 years, 1 month ago (2016-10-26 19:38:08 UTC) #6
please use gerrit instead
Great work! Lots of complexity in here. https://codereview.chromium.org/2373103002/diff/140001/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://codereview.chromium.org/2373103002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode535 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:535: private boolean ...
4 years, 1 month ago (2016-10-27 17:14:26 UTC) #7
Kevin Bailey
https://codereview.chromium.org/2373103002/diff/140001/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://codereview.chromium.org/2373103002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode535 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:535: private boolean parseAndValidateDetailsOrDisconnectFromClient(PaymentDetails details) { On 2016/10/27 17:14:25, rouslan ...
4 years, 1 month ago (2016-10-27 22:17:53 UTC) #8
please use gerrit instead
https://codereview.chromium.org/2373103002/diff/140001/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://codereview.chromium.org/2373103002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode535 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:535: private boolean parseAndValidateDetailsOrDisconnectFromClient(PaymentDetails details) { On 2016/10/27 22:17:52, Kevin ...
4 years, 1 month ago (2016-10-28 18:38:58 UTC) #9
Kevin Bailey
https://codereview.chromium.org/2373103002/diff/140001/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://codereview.chromium.org/2373103002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode535 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:535: private boolean parseAndValidateDetailsOrDisconnectFromClient(PaymentDetails details) { On 2016/10/28 18:38:58, rouslan ...
4 years, 1 month ago (2016-10-28 20:53:05 UTC) #10
please use gerrit instead
Thank you! https://codereview.chromium.org/2373103002/diff/140001/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://codereview.chromium.org/2373103002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode535 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:535: private boolean parseAndValidateDetailsOrDisconnectFromClient(PaymentDetails details) { On 2016/10/28 ...
4 years, 1 month ago (2016-10-31 13:17:33 UTC) #11
Kevin Bailey
https://codereview.chromium.org/2373103002/diff/240001/components/payments/payments_validators.cc File components/payments/payments_validators.cc (right): https://codereview.chromium.org/2373103002/diff/240001/components/payments/payments_validators.cc#newcode29 components/payments/payments_validators.cc:29: // if (ScriptRegexp("^-?[0-9]+(\\.[0-9]+)?$", On 2016/10/31 13:17:33, rouslan wrote: > ...
4 years, 1 month ago (2016-10-31 14:10:03 UTC) #12
please use gerrit instead
https://codereview.chromium.org/2373103002/diff/280001/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://codereview.chromium.org/2373103002/diff/280001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode587 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:587: * Validates a list of payment items and returns ...
4 years, 1 month ago (2016-10-31 14:31:15 UTC) #13
Kevin Bailey
https://codereview.chromium.org/2373103002/diff/280001/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://codereview.chromium.org/2373103002/diff/280001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode587 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java:587: * Validates a list of payment items and returns ...
4 years, 1 month ago (2016-10-31 20:32:00 UTC) #14
please use gerrit instead
We should remove the "blink" namespace from "components/payments/" either in this CL or a follow ...
4 years, 1 month ago (2016-11-01 14:20:03 UTC) #15
Kevin Bailey
I would definitely like to correct the namespace ASAP, before anyone writes code to it, ...
4 years, 1 month ago (2016-11-01 15:32:13 UTC) #16
please use gerrit instead
"payments" namespace sounds good. This patch lgtm after the namespace change.
4 years, 1 month ago (2016-11-01 15:33:54 UTC) #17
please use gerrit instead
Follow up CL for namespace change is also good.
4 years, 1 month ago (2016-11-01 15:40:50 UTC) #18
Kevin Bailey
On 2016/11/01 15:40:50, rouslan wrote: > Follow up CL for namespace change is also good. ...
4 years, 1 month ago (2016-11-01 17:49:47 UTC) #28
jochen (gone - plz use gerrit)
please format the CL description according to https://www.chromium.org/developers/contributing-code#Writing_change_list_descriptions (break long lines at 80c) then this ...
4 years, 1 month ago (2016-11-02 10:56:32 UTC) #29
Mike West
mojom LGTM
4 years, 1 month ago (2016-11-03 12:58:11 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2373103002/440001
4 years, 1 month ago (2016-11-03 20:09:17 UTC) #47
commit-bot: I haz the power
Committed patchset #23 (id:440001)
4 years, 1 month ago (2016-11-03 20:17:28 UTC) #49
commit-bot: I haz the power
4 years, 1 month ago (2016-11-03 20:19:31 UTC) #51
Message was sent while issue was closed.
Patchset 23 (id:??) landed as
https://crrev.com/be5499627776990fbf5ed4af9538f6aff414eaac
Cr-Commit-Position: refs/heads/master@{#429685}

Powered by Google App Engine
This is Rietveld 408576698