[Web Payment] Validate CanMakePaymentResponsePtr
Before this patch, payment_app_provider_impl.cc cleared the |ready_for_minimal_ui| and |account_balance| fields of CanMakePaymentResponsePtr before forwarding the struct the service worker payment app factories. This patch validates the |account_balance| field of the CanMakePaymentResponsePtr struct and forwards to the payment app factories either the valid unchanged struct or a blank struct in case of validation failure. After this patch, the service worker payment app factories receive the full validated CanMakePaymentResponsePtr struct from the renderer. Bug: 1005076 Change-Id: I27c3b07e29804cce0b52ae7f137225007dfe4853 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2091647 Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org> Reviewed-by:Danyao Wang <danyao@chromium.org> Cr-Commit-Position: refs/heads/master@{#749606}
Showing
Please register or sign in to comment