Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Side by Side Diff: components/payments/content/payment_request.cc

Issue 2757523002: [Payments] Use PaymentInstrument/AutofillPaymentInstrument throughout. (Closed)
Patch Set: addressed nits Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/payments/payment_sheet_view_controller.cc ('k') | components/payments/content/payment_request_spec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698