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

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: 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/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..f439fd1028e1763c7807fe6a2e8159ef83422752 100644
--- a/chrome/browser/ui/views/payments/payment_method_view_controller.cc
+++ b/chrome/browser/ui/views/payments/payment_method_view_controller.cc
@@ -37,18 +37,4 @@ std::unique_ptr<views::View> PaymentMethodViewController::CreateView() {
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();
- }
-}
-
} // namespace payments

Powered by Google App Engine
This is Rietveld 408576698