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

Unified Diff: ios/chrome/browser/payments/payment_request.h

Issue 2878763002: [Payments] Better default selections on iOS (Closed)
Patch Set: fix test, really Created 3 years, 7 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: ios/chrome/browser/payments/payment_request.h
diff --git a/ios/chrome/browser/payments/payment_request.h b/ios/chrome/browser/payments/payment_request.h
index e7341c7817508a18265b6ccf0f24f708ab4a098a..37917450adbd146f2c20490669f859d8ae1a8a54 100644
--- a/ios/chrome/browser/payments/payment_request.h
+++ b/ios/chrome/browser/payments/payment_request.h
@@ -12,6 +12,7 @@
#include "base/macros.h"
#include "components/payments/core/payment_options_provider.h"
+#include "components/payments/core/payments_profile_comparator.h"
#include "ios/web/public/payments/payment_request.h"
namespace autofill {
@@ -53,7 +54,7 @@ class PaymentRequest : payments::PaymentOptionsProvider {
// Updates the payment details of the |web_payment_request_|. It also updates
// the cached references to the shipping options in |web_payment_request_| as
// well as the reference to the selected shipping option.
- void set_payment_details(const web::PaymentDetails& details);
+ void UpdatePaymentDetails(const web::PaymentDetails& details);
// PaymentOptionsProvider:
bool request_shipping() const override;
@@ -208,6 +209,8 @@ class PaymentRequest : payments::PaymentOptionsProvider {
std::vector<web::PaymentShippingOption*> shipping_options_;
web::PaymentShippingOption* selected_shipping_option_;
+ payments::PaymentsProfileComparator profile_comparator_;
+
DISALLOW_COPY_AND_ASSIGN(PaymentRequest);
};
« no previous file with comments | « components/payments/content/payment_request_state.cc ('k') | ios/chrome/browser/payments/payment_request.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698