[WebLayer] Refactor PaymentRequestService#Delegate
Changes: * Separated PaymentRequestService#Delegate into the common part (will be shared with WebLayer) and the Chrome part (moved into ChromePaymentRequestService#Delegate). After the change, the Chrome part has the TWA and basic-card related logic (skipUiForBasicCard). * skipUiForBasicCard is used by both java tests and browser tests. The java tests depends on its being overridden in PaymentRequestServiceObserverForTest#onPaymentRequestCreated. The browser test depends on its being overridden in PaymentRequestTestBridge#PaymentRequestDelegateForTest #skipUiForBasicCard (which was buggy as it was not set) Bug: 1142636 Change-Id: I4556f025e5a1c646d26bd4768724ac8ddcf9e874 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2499323 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#821342}
Showing
Please register or sign in to comment