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

Unified Diff: chrome/browser/ui/views/payments/profile_list_view_controller.h

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/profile_list_view_controller.h
diff --git a/chrome/browser/ui/views/payments/profile_list_view_controller.h b/chrome/browser/ui/views/payments/profile_list_view_controller.h
index a02ebb3c8faafbff05f30a3c6630f66ea4e4ce0a..d76db713a9378cfcfcef0ac853d07eee18ddae60 100644
--- a/chrome/browser/ui/views/payments/profile_list_view_controller.h
+++ b/chrome/browser/ui/views/payments/profile_list_view_controller.h
@@ -23,7 +23,8 @@ class View;
namespace payments {
-class PaymentRequest;
+class PaymentRequestSpec;
+class PaymentRequestState;
class PaymentRequestDialogView;
// This base class encapsulates common view logic for contexts which display
@@ -35,13 +36,15 @@ class ProfileListViewController : public PaymentRequestSheetController {
// Creates a controller which lists and allows selection of profiles
// for shipping address.
static std::unique_ptr<ProfileListViewController>
- GetShippingProfileViewController(PaymentRequest* request,
+ GetShippingProfileViewController(PaymentRequestSpec* spec,
+ PaymentRequestState* state,
PaymentRequestDialogView* dialog);
// Creates a controller which lists and allows selection of profiles
// for contact info.
static std::unique_ptr<ProfileListViewController>
- GetContactProfileViewController(PaymentRequest* request,
+ GetContactProfileViewController(PaymentRequestSpec* spec,
+ PaymentRequestState* state,
PaymentRequestDialogView* dialog);
// PaymentRequestSheetController:
@@ -54,7 +57,8 @@ class ProfileListViewController : public PaymentRequestSheetController {
protected:
// Does not take ownership of the arguments, which should outlive this object.
- ProfileListViewController(PaymentRequest* request,
+ ProfileListViewController(PaymentRequestSpec* spec,
+ PaymentRequestState* state,
PaymentRequestDialogView* dialog);
// Returns the profiles cached by |request| which are appropriate for display

Powered by Google App Engine
This is Rietveld 408576698