[WebLayer] Refactors CPRService#updateWith
Changes: * Replaced `mPaymentUiService.getPaymentRequestUI() == null` with `mIsCurrentPaymentRequestShowing` as the way to check for 'update- without-show". * Renamed "parseAndValidateDetailsForSkipToGPayHelper" as "parseAndValidateDetailsFurtherIfNeeded" because PRService needs to call it, and PRService does not know about skip-to-gpay. * Moved the main logic of CPRService#updateWith into PRService, with the remaining part called onPaymentDetailsUpdated() left in CPRService. * Since "invokedPaymentApp.updateWith()" is moved into PRService, PRService delegates the dependency MethodChecker. Bug: 1131059 Change-Id: If305338491240b16d230e3ab6b43d0c64c256de7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2530312 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#826326}
Showing
Please register or sign in to comment