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

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: Created 3 years, 11 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..5d3cf53cf99aae2134b1973644feeef91ab65dea 100644
--- a/chrome/browser/ui/views/payments/shipping_list_view_controller.cc
+++ b/chrome/browser/ui/views/payments/shipping_list_view_controller.cc
@@ -46,21 +46,8 @@ std::unique_ptr<views::View> ShippingListViewController::CreateView() {
/* show_back_arrow = */ true,
l10n_util::GetStringUTF16(IDS_PAYMENT_REQUEST_SHIPPING_SECTION_NAME),
this),
- 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();
- }
+ std::move(content_view),
+ CreateButtonsView(this));
}
} // namespace payments

Powered by Google App Engine
This is Rietveld 408576698