[WebLayer] Simplify the way test bridge accesses PaymentUiService
Context: Before this CL, PaymentRequestTestBridge accessed PaymentUiService by CPRService static methods, a CPRService instance and then PaymentUiService. The excessive use of plumbings in this route can be simplified. Changes: * PaymentRequestTestBridge no longer need to take CPRService to access PaymetUiService each time. Instead, CPRService is changed to connect PaymentUiService and PaymentRequestTestBridge for only once at the beginning, which allows PaymentRequestTestBridge to retain a PaymetUiService instance and access it directly since that time. * The test depends less on the CPRService static instance. This would make it easier to let PRService take the static instance instead. Bug: 1147269 Change-Id: I44f2c469c0db6b1c86020bb44ff29283e69bb1fb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2527705 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#826041}
Showing
Please register or sign in to comment