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

Issue 1753543002: PaymentRequest Mojo bindings. (Closed)

Created:
4 years, 9 months ago by please use gerrit instead
Modified:
4 years, 8 months ago
CC:
Aaron Boodman, abarth-chromium, Anand Mistry (off Chromium), ben+mojo_chromium.org, blink-reviews, chromium-reviews, darin (slow to review), groby-ooo-7-16, jam, Justin Donnelly, kinuko+watch, qsr+mojo_chromium.org, Ken Rockot(use gerrit already), Sam McNally, viettrungluu+watch_chromium.org, Yuki, yzshen1, yzshen+watch_chromium.org, zkoch1
Base URL:
https://chromium.googlesource.com/chromium/src.git@interface
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PaymentRequest Mojo bindings. The Mojo (new IPC replacement) bindings for PaymentRequest Blink API. Blink uses the bindings to procure the functionality for the API. Mojo eliminates multiple layers of abstraction, letting the embedder provide the functionality by implementing the PaymentRequest interface in C++ or Java for Android. The PaymentRequest interface lives in: third_party/Webkit/public/platform/modules/payments/payment_request.mojom The embedder does not provide any functionality in this patch. PaymentRequest draft spec: https://w3c.github.io/browser-payment-api/specs/paymentrequest.html BUG=587995 TEST=PaymentRequestTest.cpp TEST=PaymentResponseTest.cpp TEST=PaymentsValidatorsTest.cpp TEST=ShippingAddressTest.cpp TEST=payment-request-interface.html Committed: https://crrev.com/763f2a3acbf7ee75d8eb4f1c0a6d90399f75082f Cr-Commit-Position: refs/heads/master@{#384439}

Patch Set 1 #

Patch Set 2 #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : Rename WebStuff into PlatformStuff #

Total comments: 8

Patch Set 10 : Generating some files. #

Patch Set 11 : Addressed mojom comments. #

Patch Set 12 : Rebase #

Patch Set 13 : Add unofficial currencies. Fix compiles. #

Patch Set 14 : Fix more compiles. #

Patch Set 15 : Fix windows compile #

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : #

Patch Set 19 : #

Total comments: 2

Patch Set 20 : Can use 'for_blink' after relative paths have been fixed. #

Patch Set 21 : Separate targets for blink and the rest of chrome. #

Patch Set 22 : Disable WTF-Mojo string serialization for now. #

Total comments: 47

Patch Set 23 : Validator tests #

Patch Set 24 : More tests #

Patch Set 25 : More layout tests. #

Patch Set 26 : More layout tests. #

Patch Set 27 : Update the links to the spec. #

Patch Set 28 : Some more tests #

Patch Set 29 : Fix gn compile for tests. #

Patch Set 30 : More tests #

Patch Set 31 : Rebase #

Patch Set 32 : Using ScriptRegexp instead of manual validation. #

Patch Set 33 : Clean up #

Patch Set 34 : Don't put PaymentRequest on stack if PaymentResponse will retain a pointer to it inside of Member<>. #

Patch Set 35 : Private base class mojom::blink::PaymentRequestClient #

Patch Set 36 : WTF_NON_EXPORTED_BASE #

Patch Set 37 : Rebase #

Patch Set 38 : Fix linking error #

Total comments: 18

Patch Set 39 : mek@'s comments #

Patch Set 40 : Java package name should be org.chromium.mojom.payments #

Total comments: 6

Patch Set 41 : Combine if statement. #

Total comments: 38

Patch Set 42 : Addressed comments. #

Patch Set 43 : Rebase #

Total comments: 4

Patch Set 44 : More general type converter. #

Total comments: 2

Patch Set 45 : haraken@ comments #

Patch Set 46 : Do not include type_converter.h #

Patch Set 47 : platform depends on mojo/wtf_support #

Total comments: 18

Patch Set 48 : haraken@'s + esprehn@'s comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1629 lines, -90 lines) Patch
M third_party/WebKit/LayoutTests/payments/payment-request-interface.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +194 lines, -25 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptRegexp.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/modules.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/CurrencyAmount.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/modules/payments/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentCompleter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +26 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentDetails.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +81 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentItem.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentOptions.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 5 chunks +27 lines, -3 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 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 4 chunks +281 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +2 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentRequestDetailsTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +168 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentRequestTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +137 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentResponse.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 2 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentResponse.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 2 chunks +13 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentResponse.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentResponseTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +88 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentsValidators.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentsValidators.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +67 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/PaymentsValidatorsTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +171 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/ShippingAddress.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +5 lines, -3 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/ShippingAddress.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +29 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/ShippingAddress.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +2 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/modules/payments/ShippingAddressTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +69 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/ShippingOption.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 2 chunks +3 lines, -0 lines 1 comment Download
A third_party/WebKit/Source/platform/MojoHelper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 1 chunk +47 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 2 chunks +1 line, -1 line 0 comments Download
D third_party/WebKit/Source/platform/threading/BindForMojo.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +0 lines, -29 lines 0 comments Download
M third_party/WebKit/Source/platform/threading/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/web_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/public/blink.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +1 line, -0 lines 0 comments Download
A + third_party/WebKit/public/platform/modules/payments/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/public/platform/modules/payments/payment_request.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 1 chunk +105 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 108 (24 generated)
please use gerrit instead
Elliott, ptal platform/ in patch 9. I'm used to a single reviewer per section. If ...
4 years, 9 months ago (2016-03-07 21:01:54 UTC) #5
please use gerrit instead
Marijn, ptal modules/payments/ in patch 9.
4 years, 9 months ago (2016-03-07 21:03:08 UTC) #7
please use gerrit instead
Chris, ptal components/payments/payment_request.mojom in patch 9.
4 years, 9 months ago (2016-03-07 21:05:21 UTC) #9
haraken
Hmm. It's unfortunate that you have to add a lot of PlatformXXX classes due to ...
4 years, 9 months ago (2016-03-08 00:05:00 UTC) #11
palmer
https://codereview.chromium.org/1753543002/diff/160001/components/payments/payment_request.mojom File components/payments/payment_request.mojom (right): https://codereview.chromium.org/1753543002/diff/160001/components/payments/payment_request.mojom#newcode22 components/payments/payment_request.mojom:22: string stringified_details; This is vague and weakly-typed. Can you ...
4 years, 9 months ago (2016-03-08 22:49:36 UTC) #12
esprehn
Can we whitelist one module at a time? How much std::string and std::vector does this ...
4 years, 9 months ago (2016-03-08 22:57:43 UTC) #13
please use gerrit instead
On 2016/03/08 22:57:43, esprehn wrote: > Can we whitelist one module at a time? Sure, ...
4 years, 9 months ago (2016-03-08 23:13:42 UTC) #14
please use gerrit instead
Chris, ptal in patch 11: components/payments/*.mojom third_party/WebKit/Source/platform/payments/CountryCodeToString.* third_party/WebKit/Source/platform/payments/LanguageCodeToString.* third_party/WebKit/Source/platform/payments/ScriptCodeToString.* third_party/WebKit/Source/platform/payments/StringToCurrencyCode.* https://codereview.chromium.org/1753543002/diff/160001/components/payments/payment_request.mojom File components/payments/payment_request.mojom (right): https://codereview.chromium.org/1753543002/diff/160001/components/payments/payment_request.mojom#newcode22 ...
4 years, 9 months ago (2016-03-10 00:38:05 UTC) #16
haavardm
https://codereview.chromium.org/1753543002/diff/160001/components/payments/payment_request.mojom File components/payments/payment_request.mojom (right): https://codereview.chromium.org/1753543002/diff/160001/components/payments/payment_request.mojom#newcode34 components/payments/payment_request.mojom:34: string currency_code; On 2016/03/08 22:49:36, palmer wrote: > currency_code, ...
4 years, 9 months ago (2016-03-10 12:46:58 UTC) #18
palmer
> I'm skeptical about enuming any of the input from the JS api, as long ...
4 years, 9 months ago (2016-03-10 19:24:36 UTC) #19
esprehn
The web uses strings for enum values. That's why the apis are shapes like this. ...
4 years, 9 months ago (2016-03-10 19:27:45 UTC) #20
esprehn
The web uses strings for enum values. That's why the apis are shapes like this. ...
4 years, 9 months ago (2016-03-10 19:27:46 UTC) #21
please use gerrit instead
If bitcoin is the only currency that we do not support, I can add it ...
4 years, 9 months ago (2016-03-10 20:09:37 UTC) #22
please use gerrit instead
If bitcoin is the only currency that we do not support, I can add it ...
4 years, 9 months ago (2016-03-10 20:09:38 UTC) #23
please use gerrit instead
As a matter of fact, I should probably add all unofficial currency codes listed here: ...
4 years, 9 months ago (2016-03-10 20:33:45 UTC) #24
please use gerrit instead
As a matter of fact, I should probably add all unofficial currency codes listed here: ...
4 years, 9 months ago (2016-03-10 20:33:45 UTC) #25
please use gerrit instead
I've added the unofficial currencies in patch 13.
4 years, 9 months ago (2016-03-10 22:44:43 UTC) #26
esprehn
This patch is over a thousand lines of string to enum conversions, that really doesn't ...
4 years, 9 months ago (2016-03-11 06:06:59 UTC) #27
haavardm
On 2016/03/10 19:24:36, palmer wrote: > > I'm skeptical about enuming any of the input ...
4 years, 9 months ago (2016-03-11 13:07:26 UTC) #28
please use gerrit instead
Chris: HÃ¥vard and Elliot bring up good points. Perhaps we can use the knowledge of ...
4 years, 9 months ago (2016-03-11 17:20:37 UTC) #29
please use gerrit instead
On 2016/03/11 17:20:37, Rouslan wrote: > 1) Country code is two upper case letters. > ...
4 years, 9 months ago (2016-03-11 17:50:21 UTC) #30
please use gerrit instead
Chris, also note that translate IPCs use strings for language codes: https://code.google.com/p/chromium/codesearch#chromium/src/components/translate/content/common/translate_messages.h&l=41
4 years, 9 months ago (2016-03-11 19:15:18 UTC) #31
palmer
On 2016/03/11 19:15:18, Rouslan wrote: > Chris, also note that translate IPCs use strings for ...
4 years, 9 months ago (2016-03-14 20:51:56 UTC) #32
palmer
Anyway, after talking to Rouslan, using strings SGTM.
4 years, 9 months ago (2016-03-14 20:52:29 UTC) #33
please use gerrit instead
+yzshen@ https://codereview.chromium.org/1753543002/diff/360001/mojo/public/cpp/bindings/lib/wtf_string_serialization.cc File mojo/public/cpp/bindings/lib/wtf_string_serialization.cc (right): https://codereview.chromium.org/1753543002/diff/360001/mojo/public/cpp/bindings/lib/wtf_string_serialization.cc#newcode90 mojo/public/cpp/bindings/lib/wtf_string_serialization.cc:90: DCHECK_EQ(utf8_adaptors.front().original_input, yzshen@: Why would this DCHECK? For context, ...
4 years, 9 months ago (2016-03-17 19:34:31 UTC) #36
yzshen1
https://codereview.chromium.org/1753543002/diff/360001/mojo/public/cpp/bindings/lib/wtf_string_serialization.cc File mojo/public/cpp/bindings/lib/wtf_string_serialization.cc (right): https://codereview.chromium.org/1753543002/diff/360001/mojo/public/cpp/bindings/lib/wtf_string_serialization.cc#newcode90 mojo/public/cpp/bindings/lib/wtf_string_serialization.cc:90: DCHECK_EQ(utf8_adaptors.front().original_input, I will look into it. Would you please ...
4 years, 9 months ago (2016-03-17 21:41:17 UTC) #37
please use gerrit instead
On 2016/03/17 21:41:17, yzshen1 wrote: > https://codereview.chromium.org/1753543002/diff/360001/mojo/public/cpp/bindings/lib/wtf_string_serialization.cc > File mojo/public/cpp/bindings/lib/wtf_string_serialization.cc (right): > > https://codereview.chromium.org/1753543002/diff/360001/mojo/public/cpp/bindings/lib/wtf_string_serialization.cc#newcode90 > ...
4 years, 9 months ago (2016-03-17 21:48:26 UTC) #38
please use gerrit instead
On 2016/03/17 21:48:26, Rouslan wrote: > On 2016/03/17 21:41:17, yzshen1 wrote: > > > https://codereview.chromium.org/1753543002/diff/360001/mojo/public/cpp/bindings/lib/wtf_string_serialization.cc ...
4 years, 9 months ago (2016-03-17 21:52:57 UTC) #39
please use gerrit instead
Chris, ptal third_party/WebKit/public/platform/modules/payments/payment_request.mojom in patch 22. Blink-side validation code for region, language, script, and currency ...
4 years, 9 months ago (2016-03-18 00:14:39 UTC) #40
please use gerrit instead
Elliott, mojo integration architecture ptal.
4 years, 9 months ago (2016-03-18 00:15:13 UTC) #41
please use gerrit instead
On 2016/03/18 00:15:13, Rouslan wrote: > Elliott, mojo integration architecture ptal. In patch 22.
4 years, 9 months ago (2016-03-18 00:15:27 UTC) #42
please use gerrit instead
Marijn, owners ptal third_party/WebKit/Source/modules/payments/* in patch 22.
4 years, 9 months ago (2016-03-18 00:16:01 UTC) #43
esprehn
lgtm, does this need unit tests? Can you make those Ptr objects to construct the ...
4 years, 9 months ago (2016-03-18 00:20:50 UTC) #44
please use gerrit instead
On 2016/03/18 00:20:50, esprehn wrote: > unit tests On it.
4 years, 9 months ago (2016-03-18 00:28:36 UTC) #45
please use gerrit instead
On 2016/03/18 00:20:50, esprehn wrote: > Can you make those Ptr objects to construct the ...
4 years, 9 months ago (2016-03-18 00:36:58 UTC) #46
groby-ooo-7-16
Validation nitpick driveby :) https://codereview.chromium.org/1753543002/diff/420001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/1753543002/diff/420001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode65 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:65: bool isDigit = amount[i] >= ...
4 years, 9 months ago (2016-03-18 00:47:26 UTC) #48
Marijn Kruisselbrink
https://codereview.chromium.org/1753543002/diff/420001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/1753543002/diff/420001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode45 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:45: bool isValidAmount(const String& amount, ExceptionState& exceptionState) This doesn't seem ...
4 years, 9 months ago (2016-03-18 01:39:49 UTC) #49
haraken
The architectural part LGTM. https://codereview.chromium.org/1753543002/diff/420001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/1753543002/diff/420001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode31 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:31: exceptionState.throwTypeError("'" + code + "' ...
4 years, 9 months ago (2016-03-18 09:19:45 UTC) #50
rwlbuis
https://codereview.chromium.org/1753543002/diff/420001/third_party/WebKit/Source/modules/payments/ShippingAddress.cpp File third_party/WebKit/Source/modules/payments/ShippingAddress.cpp (right): https://codereview.chromium.org/1753543002/diff/420001/third_party/WebKit/Source/modules/payments/ShippingAddress.cpp#newcode10 third_party/WebKit/Source/modules/payments/ShippingAddress.cpp:10: bool isValidRegionCodeString(const String& code) Why not make all three ...
4 years, 9 months ago (2016-03-18 14:37:59 UTC) #52
haraken
BTW, where is the unit-tests/layout-tests for the Payment feature going to be written?
4 years, 9 months ago (2016-03-19 00:44:53 UTC) #54
please use gerrit instead
On 2016/03/19 00:44:53, haraken wrote: > BTW, where is the unit-tests/layout-tests for the Payment feature ...
4 years, 9 months ago (2016-03-21 16:02:41 UTC) #55
groby-ooo-7-16
https://codereview.chromium.org/1753543002/diff/420001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/1753543002/diff/420001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode45 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:45: bool isValidAmount(const String& amount, ExceptionState& exceptionState) On 2016/03/18 01:39:48, ...
4 years, 9 months ago (2016-03-21 19:36:27 UTC) #56
please use gerrit instead
groby@, mek@, rwlbuis@, haraken@, ptal patch 33. I've written several tests: - PaymentRequestTest.cpp - PaymentResponseTest.cpp ...
4 years, 9 months ago (2016-03-23 00:14:52 UTC) #59
Marijn Kruisselbrink
https://codereview.chromium.org/1753543002/diff/740001/third_party/WebKit/Source/modules/payments/MockPaymentRequest.h File third_party/WebKit/Source/modules/payments/MockPaymentRequest.h (right): https://codereview.chromium.org/1753543002/diff/740001/third_party/WebKit/Source/modules/payments/MockPaymentRequest.h#newcode30 third_party/WebKit/Source/modules/payments/MockPaymentRequest.h:30: enum ModificaitonType { ModificationType https://codereview.chromium.org/1753543002/diff/740001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/1753543002/diff/740001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode30 ...
4 years, 9 months ago (2016-03-25 17:13:31 UTC) #60
please use gerrit instead
mek@, ptal patch 39. https://codereview.chromium.org/1753543002/diff/740001/third_party/WebKit/Source/modules/payments/MockPaymentRequest.h File third_party/WebKit/Source/modules/payments/MockPaymentRequest.h (right): https://codereview.chromium.org/1753543002/diff/740001/third_party/WebKit/Source/modules/payments/MockPaymentRequest.h#newcode30 third_party/WebKit/Source/modules/payments/MockPaymentRequest.h:30: enum ModificaitonType { On 2016/03/25 ...
4 years, 9 months ago (2016-03-25 19:26:37 UTC) #61
please use gerrit instead
groby@, rwlbuis@, haraken@, ping. Please let me know whether I have adequately addressed your comments. ...
4 years, 9 months ago (2016-03-25 19:35:39 UTC) #62
rwlbuis
@Rouslan my previous comment is addressed. Patch looks good to me, found one possible improvement. ...
4 years, 9 months ago (2016-03-25 22:14:41 UTC) #63
please use gerrit instead
https://codereview.chromium.org/1753543002/diff/780001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/1753543002/diff/780001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode306 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:306: } On 2016/03/25 22:14:41, rwlbuis wrote: > Looks like ...
4 years, 9 months ago (2016-03-25 22:41:31 UTC) #64
Marijn Kruisselbrink
lgtm with nits but could you update the description to be a bit more descriptive ...
4 years, 9 months ago (2016-03-25 22:46:25 UTC) #65
esprehn
Please link to the spec or explainer in the patch description and explain what this ...
4 years, 9 months ago (2016-03-25 22:50:37 UTC) #66
esprehn
https://codereview.chromium.org/1753543002/diff/800001/third_party/WebKit/Source/modules/payments/MockPaymentRequest.h File third_party/WebKit/Source/modules/payments/MockPaymentRequest.h (right): https://codereview.chromium.org/1753543002/diff/800001/third_party/WebKit/Source/modules/payments/MockPaymentRequest.h#newcode17 third_party/WebKit/Source/modules/payments/MockPaymentRequest.h:17: DetailNone, these are all global, we'd usually pick more ...
4 years, 9 months ago (2016-03-25 23:40:12 UTC) #69
esprehn
https://codereview.chromium.org/1753543002/diff/800001/third_party/WebKit/Source/modules/payments/MockPaymentRequest.cpp File third_party/WebKit/Source/modules/payments/MockPaymentRequest.cpp (right): https://codereview.chromium.org/1753543002/diff/800001/third_party/WebKit/Source/modules/payments/MockPaymentRequest.cpp#newcode87 third_party/WebKit/Source/modules/payments/MockPaymentRequest.cpp:87: ON_CALL(*this, complete(testing::_, testing::_)) Yeah I really think we want ...
4 years, 9 months ago (2016-03-25 23:48:40 UTC) #70
Marijn Kruisselbrink
https://codereview.chromium.org/1753543002/diff/800001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/1753543002/diff/800001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode75 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:75: output->shipping_options[i] = mojom::wtf::ShippingOption::From(input.shippingOptions()[i]); On 2016/03/25 at 23:40:11, esprehn wrote: ...
4 years, 9 months ago (2016-03-25 23:59:40 UTC) #71
rwlbuis
https://codereview.chromium.org/1753543002/diff/800001/third_party/WebKit/LayoutTests/payments/payment-request-interface.html File third_party/WebKit/LayoutTests/payments/payment-request-interface.html (right): https://codereview.chromium.org/1753543002/diff/800001/third_party/WebKit/LayoutTests/payments/payment-request-interface.html#newcode7 third_party/WebKit/LayoutTests/payments/payment-request-interface.html:7: function substiute(originalObject, substiuteKeyValuePair) { Typo: substitute substiute with substitute ...
4 years, 8 months ago (2016-03-29 17:44:22 UTC) #72
rwlbuis
https://codereview.chromium.org/1753543002/diff/800001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/1753543002/diff/800001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode258 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:258: RefPtr<JSONValue> value = toJSONValue(data.context(), data.v8Value()); On 2016/03/25 23:40:11, esprehn ...
4 years, 8 months ago (2016-03-29 18:26:43 UTC) #73
rwlbuis
https://codereview.chromium.org/1753543002/diff/800001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp File third_party/WebKit/Source/modules/payments/PaymentRequest.cpp (right): https://codereview.chromium.org/1753543002/diff/800001/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp#newcode271 third_party/WebKit/Source/modules/payments/PaymentRequest.cpp:271: if (!paymentMethodSpecificKeyValue.value || paymentMethodSpecificKeyValue.value->isNull() || paymentMethodSpecificKeyValue.value->getType() != JSONValue::TypeObject) { ...
4 years, 8 months ago (2016-03-29 19:30:46 UTC) #74
groby-ooo-7-16
If you meant 33 - yes, LGTM :)
4 years, 8 months ago (2016-03-29 19:43:45 UTC) #75
rwlbuis
@Rouslan I notice you already have a lot of thumbs up for this patch, since ...
4 years, 8 months ago (2016-03-29 20:42:44 UTC) #76
rwlbuis
lgtm (once it builds).
4 years, 8 months ago (2016-03-29 21:10:06 UTC) #77
please use gerrit instead
esprehn@ & mek@, ptal patch 43. yzshen@: ptal mojo/public/cpp/bindings/wtf_array.h in patch 43. palmer@, ptal third_party/WebKit/public/platform/modules/payments/payment_request.mojom ...
4 years, 8 months ago (2016-03-29 22:15:45 UTC) #78
yzshen1
https://codereview.chromium.org/1753543002/diff/840001/mojo/public/cpp/bindings/wtf_array.h File mojo/public/cpp/bindings/wtf_array.h (right): https://codereview.chromium.org/1753543002/diff/840001/mojo/public/cpp/bindings/wtf_array.h#newcode242 mojo/public/cpp/bindings/wtf_array.h:242: struct TypeConverter<WTFArray<T>, WTF::Vector<E, 0, blink::HeapAllocator>> { Is it a ...
4 years, 8 months ago (2016-03-29 22:49:31 UTC) #79
esprehn
Hmm this goes back to the discussion we had about GCed objects in blink. This ...
4 years, 8 months ago (2016-03-29 22:57:07 UTC) #80
please use gerrit instead
https://codereview.chromium.org/1753543002/diff/840001/mojo/public/cpp/bindings/wtf_array.h File mojo/public/cpp/bindings/wtf_array.h (right): https://codereview.chromium.org/1753543002/diff/840001/mojo/public/cpp/bindings/wtf_array.h#newcode242 mojo/public/cpp/bindings/wtf_array.h:242: struct TypeConverter<WTFArray<T>, WTF::Vector<E, 0, blink::HeapAllocator>> { On 2016/03/29 22:49:31, ...
4 years, 8 months ago (2016-03-29 23:08:11 UTC) #81
please use gerrit instead
On 2016/03/29 22:57:07, esprehn wrote: > Hmm this goes back to the discussion we had ...
4 years, 8 months ago (2016-03-29 23:10:05 UTC) #82
yzshen1
https://codereview.chromium.org/1753543002/diff/840001/mojo/public/cpp/bindings/wtf_array.h File mojo/public/cpp/bindings/wtf_array.h (right): https://codereview.chromium.org/1753543002/diff/840001/mojo/public/cpp/bindings/wtf_array.h#newcode242 mojo/public/cpp/bindings/wtf_array.h:242: struct TypeConverter<WTFArray<T>, WTF::Vector<E, 0, blink::HeapAllocator>> { On 2016/03/29 23:08:11, ...
4 years, 8 months ago (2016-03-29 23:20:16 UTC) #83
please use gerrit instead
yzshen@: ptal mojo/public/cpp/bindings/wtf_array.h in patch 44.
4 years, 8 months ago (2016-03-29 23:49:17 UTC) #84
haraken
On 2016/03/29 23:08:11, Rouslan wrote: > https://codereview.chromium.org/1753543002/diff/840001/mojo/public/cpp/bindings/wtf_array.h > File mojo/public/cpp/bindings/wtf_array.h (right): > > https://codereview.chromium.org/1753543002/diff/840001/mojo/public/cpp/bindings/wtf_array.h#newcode242 > ...
4 years, 8 months ago (2016-03-30 01:23:20 UTC) #85
haraken
https://codereview.chromium.org/1753543002/diff/860001/third_party/WebKit/Source/modules/payments/PaymentsValidators.h File third_party/WebKit/Source/modules/payments/PaymentsValidators.h (right): https://codereview.chromium.org/1753543002/diff/860001/third_party/WebKit/Source/modules/payments/PaymentsValidators.h#newcode11 third_party/WebKit/Source/modules/payments/PaymentsValidators.h:11: namespace blink { Maybe we want to put these ...
4 years, 8 months ago (2016-03-30 01:23:40 UTC) #86
please use gerrit instead
haraken@, ptal patch 47. On 2016/03/30 01:23:20, haraken wrote: > I'd suggest creating platform/MojoHelper.h to ...
4 years, 8 months ago (2016-03-30 15:53:35 UTC) #87
palmer
lgtm
4 years, 8 months ago (2016-03-30 20:48:18 UTC) #88
haraken
Mostly looks good. (I'm fine with landing this CL but please consider splitting a large ...
4 years, 8 months ago (2016-03-31 02:19:34 UTC) #89
esprehn
lgtm once haraken@ is happy. Note that payments is literally the only user of toJSONValue, ...
4 years, 8 months ago (2016-03-31 04:44:58 UTC) #90
haraken
+yhirano for Promise part LGTM (assuming the questions in my last review comment were answered).
4 years, 8 months ago (2016-03-31 08:26:34 UTC) #92
Marijn Kruisselbrink
still lgtm https://codereview.chromium.org/1753543002/diff/920001/third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp File third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp (right): https://codereview.chromium.org/1753543002/diff/920001/third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp#newcode14 third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp:14: PaymentDetails buildPaymentDetailsForTest(PaymentTestDetailToChange detail, PaymentTestDataToChange data, PaymentTestModificationType modificationType, ...
4 years, 8 months ago (2016-03-31 18:21:15 UTC) #93
please use gerrit instead
yhirano@, ptal promises in third_party/WebKit/Source/modules/payments/PaymentRequest.cpp in patch 48. https://codereview.chromium.org/1753543002/diff/920001/third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp File third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp (right): https://codereview.chromium.org/1753543002/diff/920001/third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp#newcode14 third_party/WebKit/Source/modules/payments/PaymentDetailsTestHelper.cpp:14: PaymentDetails ...
4 years, 8 months ago (2016-03-31 20:43:09 UTC) #94
please use gerrit instead
yhirano@, ptal promises in third_party/WebKit/Source/modules/payments/PaymentRequest.cpp in patch 48.
4 years, 8 months ago (2016-03-31 20:43:20 UTC) #95
please use gerrit instead
haraken@ says a review from yhirano@ is not necessary, because I've answered haraken@'s questions. Sending ...
4 years, 8 months ago (2016-03-31 23:25:47 UTC) #96
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1753543002/940001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1753543002/940001
4 years, 8 months ago (2016-03-31 23:26:52 UTC) #99
commit-bot: I haz the power
Committed patchset #48 (id:940001)
4 years, 8 months ago (2016-04-01 00:04:06 UTC) #101
commit-bot: I haz the power
Patchset 48 (id:??) landed as https://crrev.com/763f2a3acbf7ee75d8eb4f1c0a6d90399f75082f Cr-Commit-Position: refs/heads/master@{#384439}
4 years, 8 months ago (2016-04-01 00:06:05 UTC) #103
krasin
For the record, this change introduced https://crbug.com/600808, which is the cause for 'CFI Linux' buildbot ...
4 years, 8 months ago (2016-04-05 20:46:01 UTC) #104
kinuko
https://codereview.chromium.org/1753543002/diff/940001/third_party/WebKit/Source/platform/DEPS File third_party/WebKit/Source/platform/DEPS (right): https://codereview.chromium.org/1753543002/diff/940001/third_party/WebKit/Source/platform/DEPS#newcode4 third_party/WebKit/Source/platform/DEPS:4: "+base/bind.h", Sorry, I just noticed this... so now we ...
4 years, 8 months ago (2016-04-22 01:31:03 UTC) #106
Marijn Kruisselbrink
On 2016/04/22 at 01:31:03, kinuko wrote: > https://codereview.chromium.org/1753543002/diff/940001/third_party/WebKit/Source/platform/DEPS > File third_party/WebKit/Source/platform/DEPS (right): > > https://codereview.chromium.org/1753543002/diff/940001/third_party/WebKit/Source/platform/DEPS#newcode4 ...
4 years, 8 months ago (2016-04-22 01:40:07 UTC) #107
kinuko
4 years, 8 months ago (2016-04-22 02:02:15 UTC) #108
Message was sent while issue was closed.
On 2016/04/22 01:40:07, Marijn Kruisselbrink wrote:
> On 2016/04/22 at 01:31:03, kinuko wrote:
> >
>
https://codereview.chromium.org/1753543002/diff/940001/third_party/WebKit/Sou...
> > File third_party/WebKit/Source/platform/DEPS (right):
> > 
> >
>
https://codereview.chromium.org/1753543002/diff/940001/third_party/WebKit/Sou...
> > third_party/WebKit/Source/platform/DEPS:4: "+base/bind.h",
> > Sorry, I just noticed this... so now we allow base/bind.h in all
> Source/platform, which I believe we've been trying to avoid.  Having
> MojoHelper.h in platform/ makes sense, but having this line in platform/DEPS
> feels a bit unfortunate.  Could MojoHelper.h be in Source/platform/mojo or
> somewhere slightly more scoped until unification happens?
> 
> I think having a platform/mojo subdirectory makes a lot of sense, also for
> example as a place to put mojo typemaps to convert things like URLs and
origins
> between mojo types and blink types.

https://codereview.chromium.org/1910373002/ created a CL to see how others feel.

Powered by Google App Engine
This is Rietveld 408576698