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

Unified Diff: chrome/browser/ui/views/payments/payment_sheet_view_controller.cc

Issue 2643643006: [WebPayments] Adding something resembling Shipping Address list (Closed)
Patch Set: Further rebasing Created 3 years, 11 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: 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 87d3f2d408d7981bf4edc7c9eaccf0058a5675e2..061d75fdc88d98fb5aa834c9439df90d650385b4 100644
--- a/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
+++ b/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
@@ -213,7 +213,7 @@ void PaymentSheetViewController::ButtonPressed(
break;
case static_cast<int>(PaymentSheetViewControllerTags::SHOW_SHIPPING_BUTTON):
- // TODO(tmartino): Transition to shipping page once it exists.
+ dialog()->ShowShippingListSheet();
break;
case static_cast<int>(
@@ -266,7 +266,7 @@ PaymentSheetViewController::CreatePaymentSheetSummaryRow() {
std::unique_ptr<views::View>
PaymentSheetViewController::CreateShippingSectionContent() {
- auto profile = request()->GetCurrentlySelectedProfile();
+ 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.
@@ -351,7 +351,7 @@ PaymentSheetViewController::CreatePaymentMethodRow() {
std::unique_ptr<views::View>
PaymentSheetViewController::CreateContactInfoSectionContent() {
- auto profile = request()->GetCurrentlySelectedProfile();
+ auto profile = request()->selected_contact_profile();
// TODO(tmartino): Replace empty string with app locale.
return profile ? payments::GetContactInfoLabel(AddressStyleType::SUMMARY,
std::string(), *profile, true,

Powered by Google App Engine
This is Rietveld 408576698