[WebLayer] Encapsulates getContactSection in PaymentUiService
Before the CL, CPRService did PaymentUiService.getContactSection().getSelectedItem(). This is not convenient for unit tests because the tests have to mock the contact section and the selected item. This CL changes it so CPRService accesses the selected contact by proxy of PaymentUiService. Bug: 1155582 Change-Id: I393f27594024cfb609ba99f212ac034c92a19b26 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2575341 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#833950}
Showing
Please register or sign in to comment