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

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: Self CR 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 a43851a04120571ab6d3a6fb7f2f67e56f79a631..7371e594854679a4cbfeb6e7e2ebd6bf5d972122 100644
--- a/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
+++ b/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
@@ -245,10 +245,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