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

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

Issue 2748133004: [Payments] View controllers no longer have access to PaymentRequest (Closed)
Patch Set: Initial Created 3 years, 9 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 0fc3bb618dd4e885905bb89a9fa34d67fc7fce2d..88ff8bc579dc8397011cfed0205379903d521f52 100644
--- a/chrome/browser/ui/views/payments/payment_request_sheet_controller.cc
+++ b/chrome/browser/ui/views/payments/payment_request_sheet_controller.cc
@@ -18,9 +18,10 @@
namespace payments {
PaymentRequestSheetController::PaymentRequestSheetController(
- PaymentRequest* request, PaymentRequestDialogView* dialog)
- : request_(request), dialog_(dialog) {
-}
+ PaymentRequestSpec* spec,
+ PaymentRequestState* state,
+ PaymentRequestDialogView* dialog)
+ : spec_(spec), state_(state), dialog_(dialog) {}
std::unique_ptr<views::Button>
PaymentRequestSheetController::CreatePrimaryButton() {
@@ -42,7 +43,7 @@ void PaymentRequestSheetController::ButtonPressed(
dialog()->GoBack();
break;
case PaymentRequestCommonTags::PAY_BUTTON_TAG:
- request()->Pay();
+ dialog()->Pay();
break;
case PaymentRequestCommonTags::PAYMENT_REQUEST_COMMON_TAG_MAX:
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698