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

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

Issue 2643643006: [WebPayments] Adding something resembling Shipping Address list (Closed)
Patch Set: Cleanup 2 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 1fbb4bcfe4cc6e915a383460a0dfa42d56e35dbf..9f1345c062e956ae57cd5147024b9193a926c8b3 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()->GetSelectedShippingProfile();
// 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()->GetSelectedContactProfile();
// 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