[Web Payment] Check if in TWA.
Before this patch, Web Payment would enable app store integration on Chrome OS when invoked from an origin that has a TWA, even if not currently running in a TWA. This allowed tabs to invoke the app store billing flow. This patch returns an empty TWA package name to Web Payment when Browser::app_controller() is null. After this patch, Web Payment enables the app the store billing flow only when running inside of a TWA. Bug: 1156537 Change-Id: Ie0ba5b0980be193dfcab36177d652e4ed2635407 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2580011Reviewed-by:Jeevan Shikaram <jshikaram@chromium.org> Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#834984}
Showing
Please register or sign in to comment