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

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

Issue 2836353002: [Payments] Normalize shipping address change on Desktop (Closed)
Patch Set: Addressed Math's comments 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_response_helper.h
diff --git a/components/payments/content/payment_response_helper.h b/components/payments/content/payment_response_helper.h
index 83a66aa6ab2cc729c2044ff6e3540c9630375161..d4711f63399a9e0464169af2fcb0586e6dfa3935 100644
--- a/components/payments/content/payment_response_helper.h
+++ b/components/payments/content/payment_response_helper.h
@@ -43,7 +43,7 @@ class PaymentResponseHelper : public PaymentInstrument::Delegate,
// Returns a new mojo PaymentAddress based on the specified
// |profile| and |app_locale|.
static mojom::PaymentAddressPtr GetMojomPaymentAddressFromAutofillProfile(
- const autofill::AutofillProfile* const profile,
+ const autofill::AutofillProfile& profile,
const std::string& app_locale);
// PaymentInstrument::Delegate
@@ -74,6 +74,8 @@ class PaymentResponseHelper : public PaymentInstrument::Delegate,
// Not owned, can be null (dependent on the spec).
autofill::AutofillProfile* selected_contact_profile_;
+ // A normalized copy of the shipping address, which will be included in the
+ // PaymentResponse.
autofill::AutofillProfile shipping_address_;
// Instrument Details.
« no previous file with comments | « components/payments/content/payment_request_state_unittest.cc ('k') | components/payments/content/payment_response_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698