| Index: components/payments/payment_request.cc
|
| diff --git a/components/payments/payment_request.cc b/components/payments/payment_request.cc
|
| index 538bea15975fec228e594a2756c94feea9b03955..98182c155672e0a96ae518de2a66c1702ffb3226 100644
|
| --- a/components/payments/payment_request.cc
|
| +++ b/components/payments/payment_request.cc
|
| @@ -37,6 +37,7 @@ void PaymentRequest::Init(
|
| if (!payments::validatePaymentDetails(details, &error)) {
|
| LOG(ERROR) << error;
|
| OnError();
|
| + client_.reset();
|
| return;
|
| }
|
| client_ = std::move(client);
|
| @@ -44,6 +45,10 @@ void PaymentRequest::Init(
|
| }
|
|
|
| void PaymentRequest::Show() {
|
| + if (!client_.is_bound() || !binding_.is_bound()) {
|
| + OnError();
|
| + return;
|
| + }
|
| delegate_->ShowPaymentRequestDialog(this);
|
| }
|
|
|
|
|