| Index: third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| index ea50249f3b32d5982c004280615331f9d82c4128..a6571b2a16684bf11c2809f4f7d77771562d59f1 100644
|
| --- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| +++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| @@ -293,8 +293,8 @@ PaymentRequest::PaymentRequest(ScriptState* scriptState, const Vector<String>& s
|
| }
|
| }
|
|
|
| - // Set the currently selected option if only one option was passed.
|
| - if (details.hasShippingOptions() && details.shippingOptions().size() == 1)
|
| + // Set the currently selected option if only one option is passed and shipping is requested.
|
| + if (options.requestShipping() && details.hasShippingOptions() && details.shippingOptions().size() == 1)
|
| m_shippingOption = details.shippingOptions().begin()->id();
|
| }
|
|
|
|
|