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

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

Issue 2923533002: [Merge M60][Payments] Do not select an address if the merchant doesn't support it (Closed)
Patch Set: Created 3 years, 6 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 b66ab59d268e930b5e76cbeaeae466283f9a74ec..a62d2b84eaea08d7ec64b91eb3340ca1d5bd93e2 100644
--- a/components/payments/content/payment_request_state.h
+++ b/components/payments/content/payment_request_state.h
@@ -114,6 +114,11 @@ class PaymentRequestState : public PaymentResponseHelper::Delegate,
autofill::AutofillProfile* selected_shipping_profile() const {
return selected_shipping_profile_;
}
+ // If |spec()->selected_shipping_option_error()| is not empty, this contains
+ // the profile for which the error is about.
+ autofill::AutofillProfile* selected_shipping_option_error_profile() const {
+ return selected_shipping_option_error_profile_;
+ }
autofill::AutofillProfile* selected_contact_profile() const {
return selected_contact_profile_;
}
@@ -216,6 +221,7 @@ class PaymentRequestState : public PaymentResponseHelper::Delegate,
autofill::PersonalDataManager* personal_data_manager_;
autofill::AutofillProfile* selected_shipping_profile_;
+ autofill::AutofillProfile* selected_shipping_option_error_profile_;
autofill::AutofillProfile* selected_contact_profile_;
PaymentInstrument* selected_instrument_;
« no previous file with comments | « components/payments/content/payment_request_spec.h ('k') | components/payments/content/payment_request_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698