| Index: components/payments/content/payment_request.cc
|
| diff --git a/components/payments/content/payment_request.cc b/components/payments/content/payment_request.cc
|
| index 77f03bf89c926850a998ed82f85d1ff1cd7b652f..0bb443da9458ad6da89270687e140186bc843fcc 100644
|
| --- a/components/payments/content/payment_request.cc
|
| +++ b/components/payments/content/payment_request.cc
|
| @@ -46,6 +46,11 @@ void PaymentRequest::Init(
|
| OnConnectionTerminated();
|
| return;
|
| }
|
| + if (!details->total) {
|
| + LOG(ERROR) << "Missing total";
|
| + OnConnectionTerminated();
|
| + return;
|
| + }
|
| client_ = std::move(client);
|
| spec_ = base::MakeUnique<PaymentRequestSpec>(
|
| std::move(options), std::move(details), std::move(method_data), this,
|
|
|