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 323798846a97d8990113e3675fb9dc509720ca27..c68fa62d2858fc0e621ef221f8182bb64af2ecc8 100644 |
--- a/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc |
+++ b/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc |
@@ -232,7 +232,7 @@ void PaymentSheetViewController::ButtonPressed( |
break; |
case static_cast<int>(PaymentSheetViewControllerTags::SHOW_SHIPPING_BUTTON): |
- dialog()->ShowShippingListSheet(); |
+ dialog()->ShowShippingProfileSheet(); |
break; |
case static_cast<int>( |
@@ -242,7 +242,7 @@ void PaymentSheetViewController::ButtonPressed( |
case static_cast<int>( |
PaymentSheetViewControllerTags::SHOW_CONTACT_INFO_BUTTON): |
- dialog()->ShowContactInfoSheet(); |
+ dialog()->ShowContactProfileSheet(); |
break; |
default: |
@@ -294,10 +294,8 @@ std::unique_ptr<views::View> |
PaymentSheetViewController::CreateShippingSectionContent() { |
auto* profile = request()->selected_shipping_profile(); |
- // TODO(tmartino): Empty string param is app locale; this should be passed |
- // at construct-time and stored as a member in a future CL. |
- return profile ? payments::GetShippingAddressLabel(AddressStyleType::SUMMARY, |
- std::string(), *profile) |
+ return profile ? payments::GetShippingAddressLabel( |
+ AddressStyleType::SUMMARY, request()->locale(), *profile) |
: base::MakeUnique<views::Label>(base::string16()); |
} |
@@ -372,10 +370,12 @@ PaymentSheetViewController::CreatePaymentMethodRow() { |
std::unique_ptr<views::View> |
PaymentSheetViewController::CreateContactInfoSectionContent() { |
auto* profile = request()->selected_contact_profile(); |
- // TODO(tmartino): Replace empty string with app locale. |
- return profile ? payments::GetContactInfoLabel(AddressStyleType::SUMMARY, |
- std::string(), *profile, true, |
- true, true) |
+ |
+ return profile ? payments::GetContactInfoLabel( |
+ AddressStyleType::SUMMARY, request()->locale(), *profile, |
+ request()->request_payer_name(), |
+ request()->request_payer_email(), |
+ request()->request_payer_phone()) |
: base::MakeUnique<views::Label>(base::string16()); |
} |