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

Unified Diff: chrome/browser/ui/views/payments/payment_method_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/payment_method_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/payment_method_view_controller.cc b/chrome/browser/ui/views/payments/payment_method_view_controller.cc
index 3d6e102429b6fbc927c3dcef056144748f55835d..bc675c24584208d3ca4238389ec2f7997041c9e0 100644
--- a/chrome/browser/ui/views/payments/payment_method_view_controller.cc
+++ b/chrome/browser/ui/views/payments/payment_method_view_controller.cc
@@ -34,21 +34,8 @@ std::unique_ptr<views::View> PaymentMethodViewController::CreateView() {
l10n_util::GetStringUTF16(
IDS_PAYMENT_REQUEST_PAYMENT_METHOD_SECTION_NAME),
this),
- std::move(content_view));
-}
-
-void PaymentMethodViewController::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