| Index: chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
|
| diff --git a/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc b/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
|
| index f2a8b69a72f8ca5fca749b3864cc4ceee508d645..4b11a27f6419c0751a8af415ab0533deeaab1eda 100644
|
| --- a/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
|
| +++ b/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
|
| @@ -598,10 +598,11 @@ PaymentSheetViewController::CreateShippingSectionContent() {
|
| } else {
|
| auto* profile = state()->selected_shipping_profile();
|
|
|
| - return profile ? GetShippingAddressLabel(AddressStyleType::SUMMARY,
|
| - state()->GetApplicationLocale(),
|
| - *profile)
|
| - : base::MakeUnique<views::Label>(base::string16());
|
| + return profile
|
| + ? GetShippingAddressLabel(
|
| + AddressStyleType::SUMMARY, state()->GetApplicationLocale(),
|
| + *profile, *spec(), *(state()->profile_comparator()))
|
| + : base::MakeUnique<views::Label>(base::string16());
|
| }
|
| }
|
|
|
| @@ -727,10 +728,11 @@ PaymentSheetViewController::CreatePaymentMethodRow() {
|
| std::unique_ptr<views::View>
|
| PaymentSheetViewController::CreateContactInfoSectionContent() {
|
| autofill::AutofillProfile* profile = state()->selected_contact_profile();
|
| - return profile ? payments::GetContactInfoLabel(
|
| - AddressStyleType::SUMMARY,
|
| - state()->GetApplicationLocale(), *profile, *spec())
|
| - : base::MakeUnique<views::Label>(base::string16());
|
| + return profile
|
| + ? payments::GetContactInfoLabel(
|
| + AddressStyleType::SUMMARY, state()->GetApplicationLocale(),
|
| + *profile, *spec(), *(state()->profile_comparator()))
|
| + : base::MakeUnique<views::Label>(base::string16());
|
| }
|
|
|
| // Creates the Contact Info row, which contains a "Contact info" label; the
|
|
|