| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/payments/content/payment_request.h" | 5 #include "components/payments/content/payment_request.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "components/payments/content/payment_details_validation.h" | 10 #include "components/payments/content/payment_details_validation.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // has decided to close the pipe for various reasons (see all uses of | 118 // has decided to close the pipe for various reasons (see all uses of |
| 119 // PaymentRequest::clearResolversAndCloseMojoConnection() in Blink). We close | 119 // PaymentRequest::clearResolversAndCloseMojoConnection() in Blink). We close |
| 120 // the binding and the dialog, and ask to be deleted. | 120 // the binding and the dialog, and ask to be deleted. |
| 121 client_.reset(); | 121 client_.reset(); |
| 122 binding_.Close(); | 122 binding_.Close(); |
| 123 delegate_->CloseDialog(); | 123 delegate_->CloseDialog(); |
| 124 manager_->DestroyRequest(this); | 124 manager_->DestroyRequest(this); |
| 125 } | 125 } |
| 126 | 126 |
| 127 void PaymentRequest::Pay() { | 127 void PaymentRequest::Pay() { |
| 128 DCHECK(state_->is_ready_to_pay()); | |
| 129 | |
| 130 state_->GeneratePaymentResponse(); | 128 state_->GeneratePaymentResponse(); |
| 131 } | 129 } |
| 132 | 130 |
| 133 } // namespace payments | 131 } // namespace payments |
| OLD | NEW |