| 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
|
|
|