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

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

Issue 2847503002: [WebPayments] Show labels on incomplete profiles (Closed)
Patch Set: ios namespace 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 9ff914228203d2271ad19c622810816074762d54..c81842a4ea46692497fa1409144407c0c7688a31 100644
--- a/components/payments/content/payment_request_state.h
+++ b/components/payments/content/payment_request_state.h
@@ -12,6 +12,7 @@
#include "base/macros.h"
#include "base/observer_list.h"
#include "components/payments/content/payment_response_helper.h"
+#include "components/payments/core/profile_util.h"
#include "components/payments/mojom/payment_request.mojom.h"
namespace autofill {
@@ -145,6 +146,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
@@ -196,6 +201,8 @@ class PaymentRequestState : public PaymentResponseHelper::Delegate {
std::unique_ptr<PaymentResponseHelper> response_helper_;
+ PaymentsProfileComparator profile_comparator_;
+
base::ObserverList<Observer> observers_;
DISALLOW_COPY_AND_ASSIGN(PaymentRequestState);

Powered by Google App Engine
This is Rietveld 408576698