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

Unified Diff: components/payments/payment_request.h

Issue 2673753005: [Payments] Basic validation in the credit card editor. (Closed)
Patch Set: more tests 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: components/payments/payment_request.h
diff --git a/components/payments/payment_request.h b/components/payments/payment_request.h
index a2caab97efc406552fd2438d0f4e1817e0d26f92..cd54b7cbcebac0e7c0f69c4430af6aa567740a0c 100644
--- a/components/payments/payment_request.h
+++ b/components/payments/payment_request.h
@@ -9,8 +9,10 @@
#include <string>
#include <vector>
+#include "components/autofill/core/browser/personal_data_manager.h"
#include "components/payments/currency_formatter.h"
#include "components/payments/payment_request.mojom.h"
+#include "components/payments/payment_request_delegate.h"
#include "mojo/public/cpp/bindings/binding.h"
namespace autofill {
@@ -24,7 +26,6 @@ class WebContents;
namespace payments {
-class PaymentRequestDelegate;
class PaymentRequestWebContentsManager;
class PaymentRequest : payments::mojom::PaymentRequest {
@@ -95,6 +96,10 @@ class PaymentRequest : payments::mojom::PaymentRequest {
// card.
autofill::CreditCard* GetCurrentlySelectedCreditCard();
+ autofill::PersonalDataManager* personal_data_manager() {
+ return delegate_->GetPersonalDataManager();
+ }
+
payments::mojom::PaymentDetails* details() { return details_.get(); }
content::WebContents* web_contents() { return web_contents_; }

Powered by Google App Engine
This is Rietveld 408576698