[PaymentHandler] Set minimum load progress
Context: This is regarding the Bottom-sheet Payment Handler UI. In slow connection, the toolbar on the UI appears empty and shows no indicator of the current loading status, hardly distinguishing from a state of freezing. Old behavior: upon opening the PaymentHandlerUI, its toolbar shows nothing but the payment app's url. Change: set the minimum loading progress to be 5%. Apply it to the initialization and the progress update. New behavior: upon opening the PaymentHandlerUI, its toolbar shows the payment app's url as well as a progress bar starting from at least 5%, which reassures users that the UI is busy loading the page. Bug: 1029815 Change-Id: I05147c15e9c732c75a039c9c20fd021382ec8a72 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1951649Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Cr-Commit-Position: refs/heads/master@{#722498}
Showing
Please register or sign in to comment