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

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

Issue 2841643002: When a new Payments address is created from the editor, use it as the chosen address (Closed)
Patch Set: And yet another small goof 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 8e9cad40738b2519b1c2b6b65db4b0b1740e2b09..c13288d8be7002ff8b01547d83ee8d979ec7429e 100644
--- a/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
+++ b/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
@@ -246,10 +246,13 @@ void PaymentRequestDialogView::ShowCreditCardEditor(
}
void PaymentRequestDialogView::ShowShippingAddressEditor(
+ base::OnceClosure on_edited,
+ base::OnceCallback<void(const autofill::AutofillProfile&)> on_added,
autofill::AutofillProfile* profile) {
view_stack_->Push(CreateViewAndInstallController(
base::MakeUnique<ShippingAddressEditorViewController>(
- request_->spec(), request_->state(), this, profile),
+ request_->spec(), request_->state(), this,
+ std::move(on_edited), std::move(on_added), profile),
&controller_map_),
/* animate = */ true);
if (observer_for_testing_)

Powered by Google App Engine
This is Rietveld 408576698