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

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

Issue 2872623002: [Web Payments] Add "pencil" edit button to lists. (Closed)
Patch Set: Rebase 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
« no previous file with comments | « chrome/browser/ui/views/payments/profile_list_view_controller.cc ('k') | ui/vector_icons/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/payments/shipping_option_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/shipping_option_view_controller.cc b/chrome/browser/ui/views/payments/shipping_option_view_controller.cc
index 1f786412f60c2fae9ed6704d16d6b9edc2151b0e..3b5222466d49018e67f6a2d933a75a1c0bd7528b 100644
--- a/chrome/browser/ui/views/payments/shipping_option_view_controller.cc
+++ b/chrome/browser/ui/views/payments/shipping_option_view_controller.cc
@@ -23,7 +23,11 @@ class ShippingOptionItem : public PaymentRequestItemList::Item {
PaymentRequestItemList* parent_list,
PaymentRequestDialogView* dialog,
bool selected)
- : PaymentRequestItemList::Item(spec, state, parent_list, selected),
+ : PaymentRequestItemList::Item(spec,
+ state,
+ parent_list,
+ selected,
+ /*show_edit_button=*/false),
shipping_option_(shipping_option),
dialog_(dialog) {}
~ShippingOptionItem() override {}
@@ -59,6 +63,11 @@ class ShippingOptionItem : public PaymentRequestItemList::Item {
NOTREACHED();
}
+ void EditButtonPressed() override {
+ // This subclass doesn't display the edit button.
+ NOTREACHED();
+ }
+
mojom::PaymentShippingOption* shipping_option_;
PaymentRequestDialogView* dialog_;
« no previous file with comments | « chrome/browser/ui/views/payments/profile_list_view_controller.cc ('k') | ui/vector_icons/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698