Chromium Code Reviews| 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 d5b31b83a475329c0203d2d99af7cb3838baedd4..34ecab1581a72548912af82aad7de09a5b938852 100644 |
| --- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
| +++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
| @@ -451,6 +451,14 @@ void PaymentRequest::OnPaymentResponse(mojom::blink::PaymentResponsePtr response |
| } |
| } |
| + if (m_options.requestPayerEmail() && !response->payer_email.isNull()) { |
|
zino
2016/06/06 14:19:32
I think it should be "if (m_options.requestPayerEm
zino
2016/06/06 14:19:32
I'm not sure but the promise may have to reject if
please use gerrit instead
2016/06/06 15:43:42
The spec is not very clear on this topic. However,
|
| + m_payerEmail = response->payer_email; |
|
please use gerrit instead
2016/06/06 15:43:42
There's no need to save email an phone as member v
|
| + } |
| + |
| + if (m_options.requestPayerPhone() && !response->payer_phone.isNull()) { |
|
zino
2016/06/06 14:19:32
ditto
|
| + m_payerPhone = response->payer_phone; |
| + } |
| + |
| m_showResolver->resolve(new PaymentResponse(std::move(response), this)); |
| // Do not close the mojo connection here. The merchant website should call |