Fix failed assert on invalid app store payment app
In crrev.com/c/2254058, AndroidPaymentAppFinder was changed to mark app store payment apps as preferred payment apps. The patch made the assumption that the payment app was valid, which is not necessarily the case, e.g. if the TWA has an invalid app store payment app identifier. This patch checks for the app rather than asserting. Verified fix with the test TWA from the bug. Bug: 1120346 Change-Id: Ibd3f5bcd8f562d46583b1e580a3fc997d848c58f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2369255Reviewed-by:Liquan (Max) Gu <maxlg@chromium.org> Commit-Queue: Nick Burris <nburris@chromium.org> Cr-Commit-Position: refs/heads/master@{#801479}
Showing
Please register or sign in to comment