Chromium Code Reviews| 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 8273990318021bf9a820997409faad4bb745cc10..2ba99dd82f9366e985a5ae8da15842a6f0d73820 100644 |
| --- a/chrome/browser/ui/views/payments/payment_request_dialog_view.h |
| +++ b/chrome/browser/ui/views/payments/payment_request_dialog_view.h |
| @@ -110,7 +110,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 card was added (the reference is |
|
Mathieu
2017/04/24 20:05:19
*new profile was added
MAD
2017/04/25 14:23:49
Done.
|
| + // 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); |
| void EditorViewUpdated(); |
| void ShowCvcUnmaskPrompt( |