[Web Payment] Move "is waiting" logic to payment app.
Before this patch, the desktop logic for checking whether the payment app is waiting for a price update from the merchant was defined in the desktop controller, which prevented from sharing this logic across platforms and in different types of payment apps. This patch moves PaymentHandlerHost.is_waiting() check from payment_request.cc to service_worker_payment_app.cc. After this patch, the logic for checking whether the payment app is waiting for a price update is defined in the potentially cross-platform payment app interface. Design: https://bit.ly/cross-platform-pay-app-factory Bug: 1083242 Change-Id: Idde2f1c9396641835f154be19ac7d2901c1c1d14 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2207973 Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org> Reviewed-by:Liquan (Max) Gu <maxlg@chromium.org> Cr-Commit-Position: refs/heads/master@{#771029}
Showing
Please register or sign in to comment