[PlayBilling] AboutFlag permits AppStoreBilling TWA from any source
Context:
App store billing (knowned as Play Billing, for Google Play Store) is
the context where a TWA issues a PaymentRequest to request a transaction
with the app-store payment method. This CL imposes an restriction on
the TWA's source of installation and add an about flag to loosen the
restriction to facilitate local development & debugging.
Before:
The TWA can be installed from any source to be able to request the
app-store method.
After:
* By default, in order to request payments with an app-store payment
method, the TWA must be installed from the same app store.
* When users turn on the added about flag, they are allowed to use
an TWA from any source for the app-store billing purpose.
Change:
* Add an about flag: enable-debug-for-store-billing
* Add a restriction on the source of installation based on the flag's
state.
Bug: 1073936
Change-Id: I2213d979fcfc29085100ea7f71e4af508f376fb5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2199729
Reviewed-by: Yaron Friedman <[email protected]>
Reviewed-by: Rouslan Solomakhin <[email protected]>
Reviewed-by: Sahel Sharify <[email protected]>
Reviewed-by: Elly Fong-Jones <[email protected]>
Commit-Queue: Liquan (Max) Gu <[email protected]>
Cr-Commit-Position: refs/heads/master@{#770621}
diff --git a/chrome/browser/flag_descriptions.h b/chrome/browser/flag_descriptions.h
index 08af3c6..770ebeb 100644
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
@@ -1274,6 +1274,9 @@
extern const char kWebPaymentsMinimalUIName[];
extern const char kWebPaymentsMinimalUIDescription[];
+extern const char kAppStoreBillingDebugName[];
+extern const char kAppStoreBillingDebugDescription[];
+
extern const char kWebrtcCaptureMultiChannelApmName[];
extern const char kWebrtcCaptureMultiChannelApmDescription[];