| Index: ios/chrome/browser/payments/payment_request_util.h
|
| diff --git a/ios/chrome/browser/payments/payment_request_util.h b/ios/chrome/browser/payments/payment_request_util.h
|
| index 008fb50c975da6c1b4a5bead33acab398807ccbb..7491016c12fdee49d4bd517fa709cc3e48bc69cf 100644
|
| --- a/ios/chrome/browser/payments/payment_request_util.h
|
| +++ b/ios/chrome/browser/payments/payment_request_util.h
|
| @@ -17,19 +17,27 @@ class PaymentRequest;
|
|
|
| namespace payment_request_util {
|
|
|
| -// Helper function to get the name label from an autofill profile.
|
| -NSString* NameLabelFromAutofillProfile(autofill::AutofillProfile* profile);
|
| +// Helper function to get the name label from an autofill profile. Returns nil
|
| +// if the name field is empty.
|
| +NSString* GetNameLabelFromAutofillProfile(autofill::AutofillProfile* profile);
|
|
|
| -// Helper function to get the address label from an autofill profile.
|
| -NSString* AddressLabelFromAutofillProfile(autofill::AutofillProfile* profile);
|
| +// Helper function to get the address label from an autofill profile. Returns
|
| +// nil if the address field is empty.
|
| +NSString* GetAddressLabelFromAutofillProfile(
|
| + autofill::AutofillProfile* profile);
|
|
|
| // Helper function to get the phone number label from an autofill profile.
|
| -NSString* PhoneNumberLabelFromAutofillProfile(
|
| +// Returns nil if the phone number field is empty.
|
| +NSString* GetPhoneNumberLabelFromAutofillProfile(
|
| autofill::AutofillProfile* profile);
|
|
|
| +// Helper function to get the email label from an autofill profile. Returns nil
|
| +// if the email field is empty.
|
| +NSString* GetEmailLabelFromAutofillProfile(autofill::AutofillProfile* profile);
|
| +
|
| // Helper function to get an instance of web::PaymentAddress from an autofill
|
| // profile.
|
| -web::PaymentAddress PaymentAddressFromAutofillProfile(
|
| +web::PaymentAddress GetPaymentAddressFromAutofillProfile(
|
| autofill::AutofillProfile* profile);
|
|
|
| // Returns the title for the shipping section of the payment summary view given
|
|
|