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

Unified Diff: chrome/browser/ui/views/payments/payment_request_dialog_view.cc

Issue 2807363003: [Payments] After adding/editing a credit card, instrument is selected. (Closed)
Patch Set: include fix Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/payments/payment_request_dialog_view.cc
diff --git a/chrome/browser/ui/views/payments/payment_request_dialog_view.cc b/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
index 907de5f075cf00aaa52743e65f3920a3cd56e131..09fc134884a4d2a13d38e34372383aaf84d7b559 100644
--- a/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
+++ b/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
@@ -215,11 +215,14 @@ void PaymentRequestDialogView::ShowCvcUnmaskPrompt(
}
void PaymentRequestDialogView::ShowCreditCardEditor(
+ base::OnceClosure on_edited,
+ base::OnceCallback<void(const autofill::CreditCard&)> on_added,
autofill::CreditCard* credit_card) {
view_stack_.Push(
CreateViewAndInstallController(
base::MakeUnique<CreditCardEditorViewController>(
- request_->spec(), request_->state(), this, credit_card),
+ request_->spec(), request_->state(), this, std::move(on_edited),
+ std::move(on_added), credit_card),
&controller_map_),
/* animate = */ true);
if (observer_for_testing_)

Powered by Google App Engine
This is Rietveld 408576698