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

Issue 2507223002: Implement IsReadyToPay handling (Closed)

Created:
4 years, 1 month ago by rwlbuis
Modified:
3 years, 10 months ago
CC:
agrieve+watch_chromium.org, chromium-reviews, gogerald1, max.ldp_alibaba-inc.com, rouslan+payments_chromium.org, sebsg+paymentswatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement IsReadyToPay handling Implement IsReadyToPay handling as defined in the specification: https://docs.google.com/document/d/1izV4uC-tiRJG3JLooqY3YRLU22tYOsLTNq0P_InPJeE/edit?usp=sharing In order to communicate with the IsReadyToPay Service AIDL is used. Android payment apps are supposed to use the exact same AIDL definitions, if not the payment app will not be accepted as payment option. BUG=620173 Review-Url: https://codereview.chromium.org/2507223002 Cr-Commit-Position: refs/heads/master@{#444140} Committed: https://chromium.googlesource.com/chromium/src/+/b36b88ee87e3a4b5445cd6e865736a011541a714

Patch Set 1 #

Patch Set 2 : Fix IsReadyToPay intent #

Patch Set 3 : Use aidl #

Total comments: 1

Patch Set 4 : Rebase #

Patch Set 5 : Fix sendInstrumentsReady abuse #

Patch Set 6 : Make AIDL async and move to content #

Patch Set 7 : Fix AIDLs #

Patch Set 8 : Fix compile error #

Patch Set 9 : Implement rouslans suggestion #

Patch Set 10 : Rebase #

Patch Set 11 : Rebase for the new year #

Patch Set 12 : Rebase #

Total comments: 36

Patch Set 13 : Address most review comments #

Patch Set 14 : Address remaining review comments #

Patch Set 15 : More addressing of review comments #

Patch Set 16 : Add separate exceptions + comment #

Total comments: 15

Patch Set 17 : Address some comments #

Patch Set 18 : Address more review comments #

Patch Set 19 : Fix oneway usage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -13 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +98 lines, -12 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFactory.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +9 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/IsReadyToPayService.aidl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +19 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/IsReadyToPayServiceCallback.aidl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +19 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/payments_common.aidl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (12 generated)
please use gerrit instead
Looking pretty good! You're moving in the right direction here. https://codereview.chromium.org/2507223002/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://codereview.chromium.org/2507223002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java#newcode1069 ...
4 years, 1 month ago (2016-11-17 20:40:09 UTC) #1
rwlbuis
PTAL.
3 years, 11 months ago (2017-01-09 17:04:04 UTC) #8
please use gerrit instead
https://codereview.chromium.org/2507223002/diff/220001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java (right): https://codereview.chromium.org/2507223002/diff/220001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java#newcode24 chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java:24: No need for newline here. https://codereview.chromium.org/2507223002/diff/220001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java#newcode46 chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java:46: private static ...
3 years, 11 months ago (2017-01-09 19:02:14 UTC) #9
rwlbuis
PTAL, I think only th Exception thing is still open. https://codereview.chromium.org/2507223002/diff/220001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java (right): https://codereview.chromium.org/2507223002/diff/220001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java#newcode24 ...
3 years, 11 months ago (2017-01-10 16:40:01 UTC) #10
please use gerrit instead
https://codereview.chromium.org/2507223002/diff/220001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java (right): https://codereview.chromium.org/2507223002/diff/220001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java#newcode94 chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java:94: mHandler.post(new Runnable() { On 2017/01/10 16:40:00, rwlbuis wrote: > ...
3 years, 11 months ago (2017-01-10 16:49:22 UTC) #11
rwlbuis
https://codereview.chromium.org/2507223002/diff/220001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java (right): https://codereview.chromium.org/2507223002/diff/220001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java#newcode94 chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java:94: mHandler.post(new Runnable() { On 2017/01/10 16:49:22, rouslan wrote: > ...
3 years, 11 months ago (2017-01-10 19:31:05 UTC) #12
please use gerrit instead
This is really awful and makes me want to back away from using AIDL before ...
3 years, 11 months ago (2017-01-10 20:26:28 UTC) #13
rwlbuis
On 2017/01/10 20:26:28, rouslan wrote: > This is really awful and makes me want to ...
3 years, 11 months ago (2017-01-11 00:28:45 UTC) #14
please use gerrit instead
The spec is updated: https://docs.google.com/document/d/1izV4uC-tiRJG3JLooqY3YRLU22tYOsLTNq0P_InPJeE/edit?usp=sharing However, AliPay engineers pointed out that application lock apps can ...
3 years, 11 months ago (2017-01-11 15:33:51 UTC) #15
please use gerrit instead
I've reached the conclusion that we should continue using services. The spec has been updated. ...
3 years, 11 months ago (2017-01-13 15:15:10 UTC) #16
rwlbuis
On 2017/01/13 15:15:10, rouslan wrote: > I've reached the conclusion that we should continue using ...
3 years, 11 months ago (2017-01-13 17:02:28 UTC) #17
rwlbuis
On 2017/01/13 15:15:10, rouslan wrote: > I've reached the conclusion that we should continue using ...
3 years, 11 months ago (2017-01-13 20:01:08 UTC) #19
please use gerrit instead
Happy to see this moving along! Mostly minor comments. https://codereview.chromium.org/2507223002/diff/320001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java (right): https://codereview.chromium.org/2507223002/diff/320001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java#newcode61 chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java:61: ...
3 years, 11 months ago (2017-01-13 20:54:46 UTC) #20
please use gerrit instead
Happy to see this moving along! Mostly minor comments. https://codereview.chromium.org/2507223002/diff/320001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java (right): https://codereview.chromium.org/2507223002/diff/320001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java#newcode61 chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java:61: ...
3 years, 11 months ago (2017-01-13 20:54:47 UTC) #21
rwlbuis
https://codereview.chromium.org/2507223002/diff/320001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java (right): https://codereview.chromium.org/2507223002/diff/320001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java#newcode190 chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java:190: | NetworkOnMainThreadException | UnsupportedOperationException e) { On 2017/01/13 20:54:46, ...
3 years, 11 months ago (2017-01-13 22:12:25 UTC) #22
please use gerrit instead
https://codereview.chromium.org/2507223002/diff/320001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java (right): https://codereview.chromium.org/2507223002/diff/320001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java#newcode190 chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java:190: | NetworkOnMainThreadException | UnsupportedOperationException e) { On 2017/01/13 22:12:25, ...
3 years, 11 months ago (2017-01-16 17:41:18 UTC) #23
rwlbuis
I think I addressed all comments :) PTAL. https://codereview.chromium.org/2507223002/diff/320001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java (right): https://codereview.chromium.org/2507223002/diff/320001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java#newcode190 chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java:190: | ...
3 years, 11 months ago (2017-01-17 20:00:35 UTC) #24
please use gerrit instead
lgtm
3 years, 11 months ago (2017-01-17 20:04:24 UTC) #25
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/2507223002/380001
3 years, 11 months ago (2017-01-17 20:16:20 UTC) #27
please use gerrit instead
You need a review from content/public/android/*aidl owner. That's palmer@chromium.org, I think.
3 years, 11 months ago (2017-01-17 20:43:24 UTC) #28
rwlbuis
@palmer PTAL for review of aidl files.
3 years, 11 months ago (2017-01-17 20:48:57 UTC) #30
commit-bot: I haz the power
Committed patchset #19 (id:380001) as https://chromium.googlesource.com/chromium/src/+/b36b88ee87e3a4b5445cd6e865736a011541a714
3 years, 11 months ago (2017-01-17 21:11:39 UTC) #33
please use gerrit instead
Weird that presubmit did not block this. Either way, palmer@, would be great to have ...
3 years, 11 months ago (2017-01-17 21:15:22 UTC) #34
palmer
> Weird that presubmit did not block this. Either way, palmer@, would be great to ...
3 years, 11 months ago (2017-01-17 22:37:16 UTC) #35
Wez
Hallo aelias@chromium.org! Due to a depot_tools patch which mistakenly removed the OWNERS check for non-source ...
3 years, 10 months ago (2017-02-07 22:24:50 UTC) #37
aelias_OOO_until_Jul13
3 years, 10 months ago (2017-02-08 22:40:59 UTC) #38
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698