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

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

Issue 2715213005: [Payments] Add the pay button, and control its enabled state (Closed)
Patch Set: addressed comments 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_request_sheet_controller.cc
diff --git a/chrome/browser/ui/views/payments/payment_request_sheet_controller.cc b/chrome/browser/ui/views/payments/payment_request_sheet_controller.cc
index 343ca71c5910b9073b7e304d5ca63af98b38e198..4cbaf9696cbbd59dcf720569f26eeeb3d8f558c8 100644
--- a/chrome/browser/ui/views/payments/payment_request_sheet_controller.cc
+++ b/chrome/browser/ui/views/payments/payment_request_sheet_controller.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/ui/views/payments/payment_request_dialog_view.h"
#include "chrome/browser/ui/views/payments/payment_request_views_util.h"
+#include "components/payments/content/payment_request.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/views/background.h"
@@ -39,6 +40,9 @@ void PaymentRequestSheetController::ButtonPressed(
case PaymentRequestCommonTags::BACK_BUTTON_TAG:
dialog()->GoBack();
break;
+ case PaymentRequestCommonTags::PAY_BUTTON_TAG:
+ request()->Pay();
+ break;
case PaymentRequestCommonTags::PAYMENT_REQUEST_COMMON_TAG_MAX:
NOTREACHED();
break;

Powered by Google App Engine
This is Rietveld 408576698