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

Issue 2526293003: PaymentApp: Add classes for supporting Web Based Payment Apps (Closed)

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

Description

PaymentApp: Add classes for supporting Web Based Payment Apps This adds an application class, an instrument class and a skeleton bridging class which can later be implemented to communicate with the service worker class in C++. The app factory class has been extended to create instances of the new web based payment apps in addition to the existing autofill payment app. BUG=669876 Committed: https://crrev.com/857f8a9174628615f9775f9383e0a64846d29d55 Cr-Commit-Position: refs/heads/master@{#436274}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Optimize getter function and remove useless member variable #

Patch Set 3 : Use custom java types for manifests and options #

Total comments: 2

Patch Set 4 : Remove now unnecessary dependency to payment_app.mojom #

Total comments: 24

Patch Set 5 : Address review comments #

Total comments: 2

Patch Set 6 : web based -> service worker (based) #

Total comments: 2

Patch Set 7 : Manifest.id -> Manifest.scopeUrl #

Patch Set 8 : Switch -> Feature #

Patch Set 9 : Add unittests #

Patch Set 10 : Rebase on latest master to get rid of patch errors #

Total comments: 4

Patch Set 11 : Fix some indentation and suppress some warnings #

Patch Set 12 : Tweak the test cases a bit #

Patch Set 13 : Make the service worker unittests work even with the feature flag off #

Unified diffs Side-by-side diffs Delta from patch set Stats (+365 lines, -1 line) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ChromeFeatureList.java View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentAppFactory.java View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +42 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentApp.java View 1 2 3 4 5 6 1 chunk +80 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentAppBridge.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +61 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentInstrument.java View 1 2 3 4 5 6 7 8 9 1 chunk +60 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestServiceWorkerPaymentAppTest.java View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +107 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_feature_list.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_features.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_features.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 61 (37 generated)
tommyt
Building on my previous patch, here's a set of java classes that we can use ...
4 years ago (2016-11-25 15:27:15 UTC) #2
zino
Patch looks good to me. I left some comments. https://codereview.chromium.org/2526293003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/payments/WebBasedPaymentApp.java File chrome/android/java/src/org/chromium/chrome/browser/payments/WebBasedPaymentApp.java (right): https://codereview.chromium.org/2526293003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/payments/WebBasedPaymentApp.java#newcode11 chrome/android/java/src/org/chromium/chrome/browser/payments/WebBasedPaymentApp.java:11: ...
4 years ago (2016-11-27 18:41:23 UTC) #7
zino
Also, we will need tests for this patch.
4 years ago (2016-11-27 18:42:51 UTC) #8
tommyt
I've addressed all of zino's comments except for the one about tests. I'm aiming to ...
4 years ago (2016-11-28 14:13:23 UTC) #9
zino
looks good to me https://codereview.chromium.org/2526293003/diff/40001/chrome/android/BUILD.gn File chrome/android/BUILD.gn (right): https://codereview.chromium.org/2526293003/diff/40001/chrome/android/BUILD.gn#newcode175 chrome/android/BUILD.gn:175: "//components/payments:payment_app_java", nit: Not sure but ...
4 years ago (2016-11-28 14:48:08 UTC) #10
tommyt
https://codereview.chromium.org/2526293003/diff/40001/chrome/android/BUILD.gn File chrome/android/BUILD.gn (right): https://codereview.chromium.org/2526293003/diff/40001/chrome/android/BUILD.gn#newcode175 chrome/android/BUILD.gn:175: "//components/payments:payment_app_java", On 2016/11/28 14:48:08, zino wrote: > nit: Not ...
4 years ago (2016-11-28 15:02:38 UTC) #11
agrieve
just a couple nits from me. lgtm otherwise https://codereview.chromium.org/2526293003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentAppFactory.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentAppFactory.java (right): https://codereview.chromium.org/2526293003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentAppFactory.java#newcode76 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentAppFactory.java:76: Context ...
4 years ago (2016-11-28 17:59:54 UTC) #16
please use gerrit instead
See my comment on web-based payment apps and Android: http://crrev.com/2530793002
4 years ago (2016-11-28 18:11:50 UTC) #17
please use gerrit instead
Let's call these ServiceWorker* instead of WebBased*. https://codereview.chromium.org/2526293003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentAppFactory.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentAppFactory.java (right): https://codereview.chromium.org/2526293003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentAppFactory.java#newcode60 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentAppFactory.java:60: result.addAll(createWebBasedPaymentApps(context, webContents)); ...
4 years ago (2016-11-29 14:28:45 UTC) #18
tommyt
Thanks agrieve and rouslan for your review comments. I've tried to address them all in ...
4 years ago (2016-11-30 13:44:39 UTC) #21
zino
https://codereview.chromium.org/2526293003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentApp.java File chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentApp.java (right): https://codereview.chromium.org/2526293003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentApp.java#newcode19 chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentApp.java:19: * This app class represents a web based payment ...
4 years ago (2016-11-30 13:50:09 UTC) #22
tommyt
https://codereview.chromium.org/2526293003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentApp.java File chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentApp.java (right): https://codereview.chromium.org/2526293003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentApp.java#newcode19 chrome/android/java/src/org/chromium/chrome/browser/payments/ServiceWorkerPaymentApp.java:19: * This app class represents a web based payment ...
4 years ago (2016-11-30 13:54:30 UTC) #23
zino
Sorry.. I left one more comment additionally. But you can ignore my comment if you ...
4 years ago (2016-11-30 14:04:46 UTC) #24
tommyt
https://codereview.chromium.org/2526293003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/payments/WebBasedPaymentAppBridge.java File chrome/android/java/src/org/chromium/chrome/browser/payments/WebBasedPaymentAppBridge.java (right): https://codereview.chromium.org/2526293003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/payments/WebBasedPaymentAppBridge.java#newcode23 chrome/android/java/src/org/chromium/chrome/browser/payments/WebBasedPaymentAppBridge.java:23: public String id; On 2016/11/30 14:04:46, zino wrote: > ...
4 years ago (2016-11-30 14:14:00 UTC) #25
please use gerrit instead
https://codereview.chromium.org/2526293003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/payments/WebBasedPaymentAppBridge.java File chrome/android/java/src/org/chromium/chrome/browser/payments/WebBasedPaymentAppBridge.java (right): https://codereview.chromium.org/2526293003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/payments/WebBasedPaymentAppBridge.java#newcode23 chrome/android/java/src/org/chromium/chrome/browser/payments/WebBasedPaymentAppBridge.java:23: public String id; On 2016/11/30 14:14:00, tommyt wrote: > ...
4 years ago (2016-11-30 15:08:29 UTC) #26
David Trainor- moved to gerrit
lgtm
4 years ago (2016-11-30 18:00:30 UTC) #27
tommyt
Remaining review comments have been addressed and unit tests added in latest patchset. PTAL Also ...
4 years ago (2016-12-01 13:55:50 UTC) #29
please use gerrit instead
LGTM % nits Good job! https://codereview.chromium.org/2526293003/diff/170001/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestServiceWorkerPaymentAppTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestServiceWorkerPaymentAppTest.java (right): https://codereview.chromium.org/2526293003/diff/170001/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestServiceWorkerPaymentAppTest.java#newcode95 chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestServiceWorkerPaymentAppTest.java:95: // service worker based ...
4 years ago (2016-12-01 14:45:23 UTC) #36
zino
lgtm
4 years ago (2016-12-01 15:06:02 UTC) #37
ncarter (slow)
lgtm
4 years ago (2016-12-01 23:23:09 UTC) #40
tommyt
https://codereview.chromium.org/2526293003/diff/170001/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestServiceWorkerPaymentAppTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestServiceWorkerPaymentAppTest.java (right): https://codereview.chromium.org/2526293003/diff/170001/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestServiceWorkerPaymentAppTest.java#newcode95 chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestServiceWorkerPaymentAppTest.java:95: // service worker based payment app functionality. On 2016/12/01 ...
4 years ago (2016-12-05 10:43:22 UTC) #50
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/2526293003/230001
4 years ago (2016-12-05 13:12:13 UTC) #56
commit-bot: I haz the power
Committed patchset #13 (id:230001)
4 years ago (2016-12-05 13:17:04 UTC) #59
commit-bot: I haz the power
4 years ago (2016-12-05 13:18:50 UTC) #61
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/857f8a9174628615f9775f9383e0a64846d29d55
Cr-Commit-Position: refs/heads/master@{#436274}

Powered by Google App Engine
This is Rietveld 408576698