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

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

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.h
diff --git a/chrome/browser/ui/views/payments/payment_request_dialog_view.h b/chrome/browser/ui/views/payments/payment_request_dialog_view.h
index d45bde29295070f778f7f51ba466c3dace6eab65..07e3e4ba3a72a2ceb9ae20450f2f692b9fb0ed5f 100644
--- a/chrome/browser/ui/views/payments/payment_request_dialog_view.h
+++ b/chrome/browser/ui/views/payments/payment_request_dialog_view.h
@@ -112,7 +112,13 @@ class PaymentRequestDialogView : public views::DialogDelegateView,
base::OnceCallback<void(const autofill::CreditCard&)> on_added,
autofill::CreditCard* credit_card = nullptr);
// |profile| is the address to be edited, or nullptr for adding an address.
- void ShowShippingAddressEditor(autofill::AutofillProfile* profile = nullptr);
+ // |on_edited| is called when |profile| was successfully edited, and
+ // |on_added| is called when a new profile was added (the reference is
+ // short-lived; callee should make a copy of the profile object).
+ void ShowShippingAddressEditor(
+ base::OnceClosure on_edited,
+ base::OnceCallback<void(const autofill::AutofillProfile&)> on_added,
+ autofill::AutofillProfile* profile);
// |profile| is the profile to be edited, or nullptr for adding a profile.
void ShowContactInfoEditor(autofill::AutofillProfile* profile = nullptr);
void EditorViewUpdated();

Powered by Google App Engine
This is Rietveld 408576698