Revert "Reland "[PlayBilling] Support app-store billing in AndroidPaymentAppFinder""
This reverts commit 6e35691a. Reason for revert: errorprone failure https://ci.chromium.org/p/chromium/builders/try/android_compile_dbg/515354 Original change's description: > Reland "[PlayBilling] Support app-store billing in AndroidPaymentAppFinder" > > Original patch: https://crrev.com/2135152 > Revert: https://crrev.com/2141209 > Reason for revert: > Test failure - > AndroidPaymentAppFinderTest#testFindAppStoreBillingAppIgnoreNonAppStoreBillingApps > Reason for reland: > The test get fixed. > Before: the test expectation assumed a fixed order in Set elements. > After: the test doesn't assume it, compare set with set instead. > > Original change's description: > > Revert "[PlayBilling] Support app-store billing in AndroidPaymentAppFinder" > > > > This reverts commit cc5487e9. > > > > Reason for revert: testFindAppStoreBillingAppIgnoreNonAppStoreBillingApps is failing consistently on KitKat: > > https://ci.chromium.org/p/chromium/builders/ci/KitKat%20Phone%20Tester%20%28dbg%29 > > > > Original change's description: > > > [PlayBilling] Support app-store billing in AndroidPaymentAppFinder > > > > > > After: > > > When a merchant page runs in a Trusted Web Activity that's installed > > > from an app store (e.g., Google Play) and the PaymentRequest is not > > > requesting shipping or payer contact, if it satisfies the following > > > conditions, the TWA itself would be included: > > > - the PaymentRequest supports the (TWA installer) app store's > > > billing method in the payment request. > > > - the TWA can handle pay intents. > > > - the TWA can handle the app store billing method. > > > > > > Before: > > > AndroidPaymentAppFinder could not include a TWA for an app store > > > billing method. > > > > > > Change: > > > * In AndroidPaymentAppFinder#findAndroidPaymentApps, check if the > > > merchant page is a TWA installed from app store and if the > > > PaymentRequest is requesting shipping or payer contact. If it is, > > > add the TWA itself as a payment app if it's eligible. > > > * remove mIgnoredMethods. > > > > > > Note: > > > * Counterintuitively, the merchant page would send the pay intent to > > > the TWA instead of the Play Store, because it would be the TWA who > > > is responsible to interact with the app stores. > > > > > > Bug: 1064740 > > > > > > Change-Id: I0a2f6baebae422aaeab574e3c39a10cd61fafb4a > > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2135152 > > > Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> > > > Reviewed-by: Rouslan Solomakhin <rouslan@chromium.org> > > > Cr-Commit-Position: refs/heads/master@{#757128} > > > > TBR=rouslan@chromium.org,maxlg@chromium.org > > > > Change-Id: I954a5d5589704b2c8ad13400fcb487eac00bc677 > > No-Presubmit: true > > No-Tree-Checks: true > > No-Try: true > > Bug: 1064740 > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2141209 > > Reviewed-by: Patrick Noland <pnoland@chromium.org> > > Commit-Queue: Patrick Noland <pnoland@chromium.org> > > Cr-Commit-Position: refs/heads/master@{#757427} > > TBR=rouslan@chromium.org,pnoland@chromium.org,maxlg@chromium.org > > Change-Id: Id55022716d27a12c46d1cf4d0166d7bdb7a9ffcf > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Bug: 1064740 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2142334 > Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> > Reviewed-by: Liquan (Max) Gu <maxlg@chromium.org> > Cr-Commit-Position: refs/heads/master@{#757456} TBR=rouslan@chromium.org,pnoland@chromium.org,maxlg@chromium.org Change-Id: I3470242894219da445ed70238eb21b7e572c027f No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 1064740 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2142396Reviewed-by:Wei-Yin Chen (陳威尹) <wychen@chromium.org> Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org> Cr-Commit-Position: refs/heads/master@{#757498}
Showing
This diff is collapsed.
Please register or sign in to comment