Commit 13771712 authored by Glen Robertson's avatar Glen Robertson Committed by Commit Bot

digitalgoods: Add origin_trial_feature_name and _os for DigitalGoods.

Origin Trial on Android only for now.

Bug: 1032423,1096428
Change-Id: I8329c798138d800156bbe3f90de6d05f2d9662b2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2404284Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Auto-Submit: Glen Robertson <glenrob@chromium.org>
Commit-Queue: Glen Robertson <glenrob@chromium.org>
Cr-Commit-Position: refs/heads/master@{#807337}
parent f9237fb5
...@@ -598,7 +598,8 @@ void ValidateAndConvertPaymentDetailsUpdate(const PaymentDetailsUpdate* input, ...@@ -598,7 +598,8 @@ void ValidateAndConvertPaymentDetailsUpdate(const PaymentDetailsUpdate* input,
if (exception_state.HadException()) if (exception_state.HadException())
return; return;
if (input->hasTotal()) { if (input->hasTotal()) {
DCHECK(!RuntimeEnabledFeatures::DigitalGoodsEnabled() || !ignore_total); DCHECK(!RuntimeEnabledFeatures::DigitalGoodsEnabled(&execution_context) ||
!ignore_total);
if (ignore_total) { if (ignore_total) {
output->total = output->total =
CreateTotalPlaceHolderForAppStoreBilling(execution_context); CreateTotalPlaceHolderForAppStoreBilling(execution_context);
...@@ -1233,8 +1234,9 @@ PaymentRequest::PaymentRequest( ...@@ -1233,8 +1234,9 @@ PaymentRequest::PaymentRequest(
if (exception_state.HadException()) if (exception_state.HadException())
return; return;
ignore_total_ = RuntimeEnabledFeatures::DigitalGoodsEnabled() && ignore_total_ =
RequestingOnlyAppStoreBillingMethods(validated_method_data); RuntimeEnabledFeatures::DigitalGoodsEnabled(GetExecutionContext()) &&
RequestingOnlyAppStoreBillingMethods(validated_method_data);
ValidateAndConvertPaymentDetailsInit(details, options_, validated_details, ValidateAndConvertPaymentDetailsInit(details, options_, validated_details,
shipping_option_, ignore_total_, shipping_option_, ignore_total_,
*GetExecutionContext(), exception_state); *GetExecutionContext(), exception_state);
......
...@@ -662,6 +662,8 @@ ...@@ -662,6 +662,8 @@
}, },
{ {
name: "DigitalGoods", name: "DigitalGoods",
origin_trial_feature_name: "DigitalGoods",
origin_trial_os: ["android"],
status: "experimental", status: "experimental",
}, },
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment