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

Unified Diff: components/payments/content/payment_request_state.h

Issue 2847503002: [WebPayments] Show labels on incomplete profiles (Closed)
Patch Set: test fix Created 3 years, 8 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/content/payment_request_state.h
diff --git a/components/payments/content/payment_request_state.h b/components/payments/content/payment_request_state.h
index 9749ca4507e84118770781eaad70fc69c241c6ec..ece3bc084541b1d6529cf14d2d1e9949adfad888 100644
--- a/components/payments/content/payment_request_state.h
+++ b/components/payments/content/payment_request_state.h
@@ -14,6 +14,7 @@
#include "components/payments/content/payment_request_spec.h"
#include "components/payments/content/payment_response_helper.h"
#include "components/payments/core/address_normalizer.h"
+#include "components/payments/core/payments_profile_comparator.h"
#include "components/payments/mojom/payment_request.mojom.h"
namespace autofill {
@@ -157,6 +158,10 @@ class PaymentRequestState : public PaymentResponseHelper::Delegate,
Delegate* delegate() { return delegate_; }
+ PaymentsProfileComparator* profile_comparator() {
+ return &profile_comparator_;
+ }
+
private:
// Fetches the Autofill Profiles for this user from the PersonalDataManager,
// and stores copies of them, owned by this PaymentRequestState, in
@@ -211,6 +216,8 @@ class PaymentRequestState : public PaymentResponseHelper::Delegate,
std::unique_ptr<PaymentResponseHelper> response_helper_;
+ PaymentsProfileComparator profile_comparator_;
+
base::ObserverList<Observer> observers_;
DISALLOW_COPY_AND_ASSIGN(PaymentRequestState);
« no previous file with comments | « components/autofill/core/browser/autofill_profile_comparator.h ('k') | components/payments/content/payment_request_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698