Chromium Code Reviews| Index: chrome/browser/ui/views/payments/profile_list_view_controller.cc |
| diff --git a/chrome/browser/ui/views/payments/profile_list_view_controller.cc b/chrome/browser/ui/views/payments/profile_list_view_controller.cc |
| index f30561a67ca62d93cc6ce861f519e057416490be..35bd3ee138bf0f5d20182051b0f81d7459d3ce95 100644 |
| --- a/chrome/browser/ui/views/payments/profile_list_view_controller.cc |
| +++ b/chrome/browser/ui/views/payments/profile_list_view_controller.cc |
| @@ -58,7 +58,8 @@ class ProfileItem : public PaymentRequestItemList::Item { |
| : payments::PaymentRequestItemList::Item(spec, |
| state, |
| parent_list, |
| - selected), |
| + selected, |
| + /*show_edit_button=*/true), |
| parent_view_(parent_view), |
| profile_(profile), |
| dialog_(dialog) {} |
| @@ -94,6 +95,8 @@ class ProfileItem : public PaymentRequestItemList::Item { |
| parent_view_->ShowEditor(profile_); |
| } |
| + void EditButtonPressed() override { parent_view_->ShowEditor(profile_); } |
| + |
| ProfileListViewController* parent_view_; |
|
Evan Stade
2017/05/12 18:48:07
nit: confusing that the controller is named parent
anthonyvd
2017/05/12 20:16:48
Done.
|
| autofill::AutofillProfile* profile_; |
| PaymentRequestDialogView* dialog_; |