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

Unified Diff: ios/chrome/browser/payments/payment_request_view_controller.mm

Issue 2744823003: [Payment Request] Generic edit form (Closed)
Patch Set: 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: ios/chrome/browser/payments/payment_request_view_controller.mm
diff --git a/ios/chrome/browser/payments/payment_request_view_controller.mm b/ios/chrome/browser/payments/payment_request_view_controller.mm
index f643121fcf318b6a28cb7e4387abb07d4cae3c5e..b767803ba86f54ea34a5b50c9b4fba575568a56e 100644
--- a/ios/chrome/browser/payments/payment_request_view_controller.mm
+++ b/ios/chrome/browser/payments/payment_request_view_controller.mm
@@ -34,7 +34,6 @@
#import "ios/third_party/material_components_ios/src/components/Buttons/src/MaterialButtons.h"
#import "ios/third_party/material_components_ios/src/components/CollectionCells/src/MaterialCollectionCells.h"
#import "ios/third_party/material_components_ios/src/components/Typography/src/MaterialTypography.h"
-#import "ios/third_party/material_roboto_font_loader_ios/src/src/MaterialRobotoFontLoader.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
@@ -44,7 +43,7 @@
namespace {
using ::payment_request_util::GetNameLabelFromAutofillProfile;
-using ::payment_request_util::GetAddressLabelFromAutofillProfile;
+using ::payment_request_util::GetShippingAddressLabelFromAutofillProfile;
using ::payment_request_util::GetPhoneNumberLabelFromAutofillProfile;
using ::payment_request_util::GetEmailLabelFromAutofillProfile;
using ::payment_request_util::GetShippingSectionTitle;
@@ -420,7 +419,7 @@ typedef NS_ENUM(NSInteger, ItemType) {
withAutofillProfile:(autofill::AutofillProfile*)profile {
DCHECK(profile);
item.name = GetNameLabelFromAutofillProfile(*profile);
- item.address = GetAddressLabelFromAutofillProfile(*profile);
+ item.address = GetShippingAddressLabelFromAutofillProfile(*profile);
item.phoneNumber = GetPhoneNumberLabelFromAutofillProfile(*profile);
}

Powered by Google App Engine
This is Rietveld 408576698