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

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

Issue 2668063003: [Web Payments] Add Cancel button to all sheets (Closed)
Patch Set: Rebase Created 3 years, 10 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/shipping_list_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/shipping_list_view_controller.cc b/chrome/browser/ui/views/payments/shipping_list_view_controller.cc
index 25b391f107d36710de64b0d6182661504e0a5508..79acfeedb56c4c6be684efa2730ccf247f2ff491 100644
--- a/chrome/browser/ui/views/payments/shipping_list_view_controller.cc
+++ b/chrome/browser/ui/views/payments/shipping_list_view_controller.cc
@@ -49,18 +49,4 @@ std::unique_ptr<views::View> ShippingListViewController::CreateView() {
std::move(content_view));
}
-void ShippingListViewController::ButtonPressed(views::Button* sender,
- const ui::Event& event) {
- switch (sender->tag()) {
- case static_cast<int>(PaymentRequestCommonTags::CLOSE_BUTTON_TAG):
- dialog()->CloseDialog();
- break;
- case static_cast<int>(PaymentRequestCommonTags::BACK_BUTTON_TAG):
- dialog()->GoBack();
- break;
- default:
- NOTREACHED();
- }
-}
-
} // namespace payments

Powered by Google App Engine
This is Rietveld 408576698