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

Unified Diff: ios/chrome/browser/payments/payment_request_util.h

Issue 2712053003: [Payment Request] Displays Contact Info in the payment summary view (Closed)
Patch Set: rebase Created 3 years, 10 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_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
« no previous file with comments | « ios/chrome/browser/payments/payment_request_coordinator.mm ('k') | ios/chrome/browser/payments/payment_request_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698