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

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

Issue 2774233005: Creating PaymentOptionsProvider interface (Closed)
Patch Set: rouslan comments Created 3 years, 9 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/profile_list_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/profile_list_view_controller.cc b/chrome/browser/ui/views/payments/profile_list_view_controller.cc
index c026f5fcc2163df0ab244e26e78ea72c18f01341..fa6cf938fdb683fe385b49beda760855718d0a3e 100644
--- a/chrome/browser/ui/views/payments/profile_list_view_controller.cc
+++ b/chrome/browser/ui/views/payments/profile_list_view_controller.cc
@@ -122,7 +122,7 @@ class ShippingProfileViewController : public ProfileListViewController {
}
base::string16 GetSheetTitle() override {
- return GetShippingAddressSectionString(spec()->options().shipping_type);
+ return GetShippingAddressSectionString(spec()->shipping_type());
}
int GetSecondaryButtonTextId() override {
@@ -160,10 +160,9 @@ class ContactProfileViewController : public ProfileListViewController {
// ProfileListViewController:
std::unique_ptr<views::View> GetLabel(
autofill::AutofillProfile* profile) override {
- return GetContactInfoLabel(
- AddressStyleType::DETAILED, state()->GetApplicationLocale(), *profile,
- spec()->request_payer_name(), spec()->request_payer_phone(),
- spec()->request_payer_email());
+ return GetContactInfoLabel(AddressStyleType::DETAILED,
+ state()->GetApplicationLocale(), *profile,
+ *spec());
}
void SelectProfile(autofill::AutofillProfile* profile) override {

Powered by Google App Engine
This is Rietveld 408576698