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

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

Issue 2872623002: [Web Payments] Add "pencil" edit button to lists. (Closed)
Patch Set: Move and rename icon. Created 3 years, 7 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/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 04e43037d75437d7f806577747acf30ee52a9050..4dfa859f0c95583867d818388787446d5570d1a8 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_;
autofill::AutofillProfile* profile_;
PaymentRequestDialogView* dialog_;

Powered by Google App Engine
This is Rietveld 408576698