[WebLayer] Move PaymentAppFactoryDelegate and PaymentAppFactoryParams
Changes: * PRService takes over PaymentAppFactoryDelegate, PaymentAppFactoryParams from CPRService. These two interfaces need to be moved together, otherwise it would be subjected to the use-after-close issue of CL[1]. * Removed @Nullable from PRService#mPaymentOptions because it's not possible to be null[2]. * Wrapped canUserAddCreditCard in supportPaymentSheetBasedPaymentApp, because "whether users can add credit card" is not at the same semantic level as other methods of PaymentRequestService. PRService knows about basic-card payment app, and CPR knows about whether users can add credit card on the basic card payment app. [1] https://chromium-review.googlesource.com/c/chromium/src/+/2519759 [2] https://source.chromium.org/chromium/chromium/src/+/master:components/payments/content/android/java/src/org/chromium/components/payments/PaymentRequestService.java;l=259;drc=df872ce8fcce25af51aa6b0f9fe8b1135b687524 Bug: 1146049, 1146051, 1145803 Change-Id: Ib02f9d15b4e0777e55d63770ec6f2b68b9fe6b3c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2520277 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#824590}
Showing
This diff is collapsed.
Please register or sign in to comment