| Index: components/payments/content/payment_request_state.cc
|
| diff --git a/components/payments/content/payment_request_state.cc b/components/payments/content/payment_request_state.cc
|
| index 959ee9415f0fe604f25554f29c4a7d7119cc7fed..5e8071d5ef360cec8effaac41bf2310600c1e55d 100644
|
| --- a/components/payments/content/payment_request_state.cc
|
| +++ b/components/payments/content/payment_request_state.cc
|
| @@ -98,6 +98,8 @@ void PaymentRequestState::AddAutofillPaymentInstrument(
|
|
|
| void PaymentRequestState::SetSelectedShippingOption(
|
| const std::string& shipping_option_id) {
|
| + spec_->StartWaitingForUpdateWith(
|
| + PaymentRequestSpec::UpdateReason::SHIPPING_OPTION);
|
| // This will inform the merchant and will lead to them calling updateWith with
|
| // new PaymentDetails.
|
| delegate_->OnShippingOptionIdSelected(shipping_option_id);
|
| @@ -105,6 +107,8 @@ void PaymentRequestState::SetSelectedShippingOption(
|
|
|
| void PaymentRequestState::SetSelectedShippingProfile(
|
| autofill::AutofillProfile* profile) {
|
| + spec_->StartWaitingForUpdateWith(
|
| + PaymentRequestSpec::UpdateReason::SHIPPING_ADDRESS);
|
| selected_shipping_profile_ = profile;
|
| UpdateIsReadyToPayAndNotifyObservers();
|
| delegate_->OnShippingAddressSelected(
|
|
|