[WebLayer] Simplify updateDetailsOnPaymentRequestUI
Before the CL, the method "updateDetailsOnPaymentRequestUI" took "details", "rawTotal" and "rawLineItems". However, "rawTotal" and "rawLineItems" can be extracted from "details" directly. So this CL changes the method to provide only details. Also, these variables were provided by PaymentRequestSpec#getRawLineItems(), PaymentRequestSpec#getRawTotal(), and PaymentRequestSpec#getPaymentDetails() which are all expensive computation. This CL can help reducing the usage. Change-Id: I742e8493f1a3cb9b746882ff561badc656b4318d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2533143 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#826540}
Showing
Please register or sign in to comment