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

Issue 2556753002: PaymentApp: Implement the JNI bridge (Closed)

Created:
4 years ago by tommyt
Modified:
4 years ago
CC:
chromium-reviews, rouslan+payments_chromium.org, sebsg+paymentswatch_chromium.org, gogerald+paymentswatch_chromium.org, agrieve+watch_chromium.org, zino, zino1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PaymentApp: Implement the JNI bridge Add two native methods to ServiceWorkerPaymentAppBridge, and implement them in service_worker_payment_app_bridge.cc. The two methods are GetAllAppManifests and InvokePaymentApp. At the moment, they are just stubs, although GetAllAppManifest contains a bit of code, mainly for illustration and to avoid compile errors for unused @CalledFromNative methods in ServiceWorkerPaymentAppBridge. BUG=661608 Committed: https://crrev.com/48c76126b7ee062e0bcd470d9b47e0359f1f8db3 Cr-Commit-Position: refs/heads/master@{#438269}

Patch Set 1 #

Patch Set 2 : Move the c++ bridging files into their own folder #

Total comments: 5

Patch Set 3 : Rebase onto async-refactoring change and address review comments #

Patch Set 4 : Remove a rogue comment from a conflict resolution #

Total comments: 2

Patch Set 5 : Rebase and address Ted's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -4 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentAppBridge.java View 1 2 3 4 3 chunks +52 lines, -4 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/android/payments/service_worker_payment_app_bridge.h View 1 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/browser/android/payments/service_worker_payment_app_bridge.cc View 1 2 3 4 1 chunk +65 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 27 (17 generated)
tommyt
PTAL
4 years ago (2016-12-07 09:38:04 UTC) #8
please use gerrit instead
lgtm % comments https://codereview.chromium.org/2556753002/diff/20001/chrome/browser/android/payments/service_worker_payment_app_bridge.cc File chrome/browser/android/payments/service_worker_payment_app_bridge.cc (right): https://codereview.chromium.org/2556753002/diff/20001/chrome/browser/android/payments/service_worker_payment_app_bridge.cc#newcode22 chrome/browser/android/payments/service_worker_payment_app_bridge.cc:22: NOTIMPLEMENTED(); I would advise against using ...
4 years ago (2016-12-07 13:43:58 UTC) #9
tommyt
Added tedchoc as reviewer for the files in chrome/browser/android/. PTAL https://codereview.chromium.org/2556753002/diff/20001/chrome/browser/android/payments/service_worker_payment_app_bridge.cc File chrome/browser/android/payments/service_worker_payment_app_bridge.cc (right): https://codereview.chromium.org/2556753002/diff/20001/chrome/browser/android/payments/service_worker_payment_app_bridge.cc#newcode22 ...
4 years ago (2016-12-08 13:19:14 UTC) #11
please use gerrit instead
https://codereview.chromium.org/2556753002/diff/20001/chrome/browser/android/payments/service_worker_payment_app_bridge.cc File chrome/browser/android/payments/service_worker_payment_app_bridge.cc (right): https://codereview.chromium.org/2556753002/diff/20001/chrome/browser/android/payments/service_worker_payment_app_bridge.cc#newcode65 chrome/browser/android/payments/service_worker_payment_app_bridge.cc:65: // Register native methods On 2016/12/08 13:19:13, tommyt wrote: ...
4 years ago (2016-12-08 13:47:01 UTC) #12
Ted C
https://codereview.chromium.org/2556753002/diff/60001/chrome/browser/android/payments/service_worker_payment_app_bridge.cc File chrome/browser/android/payments/service_worker_payment_app_bridge.cc (right): https://codereview.chromium.org/2556753002/diff/60001/chrome/browser/android/payments/service_worker_payment_app_bridge.cc#newcode37 chrome/browser/android/payments/service_worker_payment_app_bridge.cc:37: env, manifest->icon ? *manifest->icon : nullptr)); looking at the ...
4 years ago (2016-12-09 18:41:28 UTC) #13
tommyt
https://codereview.chromium.org/2556753002/diff/60001/chrome/browser/android/payments/service_worker_payment_app_bridge.cc File chrome/browser/android/payments/service_worker_payment_app_bridge.cc (right): https://codereview.chromium.org/2556753002/diff/60001/chrome/browser/android/payments/service_worker_payment_app_bridge.cc#newcode37 chrome/browser/android/payments/service_worker_payment_app_bridge.cc:37: env, manifest->icon ? *manifest->icon : nullptr)); On 2016/12/09 18:41:28, ...
4 years ago (2016-12-12 10:10:41 UTC) #16
Ted C
lgtm
4 years ago (2016-12-12 18:11:13 UTC) #19
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/2556753002/80001
4 years ago (2016-12-13 18:34:22 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-13 20:07:35 UTC) #25
commit-bot: I haz the power
4 years ago (2016-12-13 20:11:01 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/48c76126b7ee062e0bcd470d9b47e0359f1f8db3
Cr-Commit-Position: refs/heads/master@{#438269}

Powered by Google App Engine
This is Rietveld 408576698