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

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

Issue 2635983002: Revert of EarlGrey tests for Payment Request (base CL) (Closed)
Patch Set: 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: ios/chrome/browser/payments/payment_request_utils.mm
diff --git a/ios/chrome/browser/payments/payment_request_utils.mm b/ios/chrome/browser/payments/payment_request_utils.mm
index d81ba69022383fd47a0bbb37dc1eb326b92a1e76..85d6cb7ec0c64fe82f06f574ee07f083ddf87169 100644
--- a/ios/chrome/browser/payments/payment_request_utils.mm
+++ b/ios/chrome/browser/payments/payment_request_utils.mm
@@ -6,16 +6,9 @@
#include "base/strings/sys_string_conversions.h"
#include "components/autofill/core/browser/autofill_profile.h"
-#include "components/autofill/core/browser/field_types.h"
#include "ios/chrome/browser/application_context.h"
namespace payment_request_utils {
-
-NSString* NameLabelFromAutofillProfile(autofill::AutofillProfile* profile) {
- return base::SysUTF16ToNSString(
- profile->GetInfo(autofill::AutofillType(autofill::NAME_FULL),
- GetApplicationContext()->GetApplicationLocale()));
-}
NSString* AddressLabelFromAutofillProfile(autofill::AutofillProfile* profile) {
// Name, company, and country are not included in the shipping address label.
@@ -42,11 +35,4 @@
return [currencyFormatter stringFromNumber:value];
}
-NSString* PhoneNumberLabelFromAutofillProfile(
- autofill::AutofillProfile* profile) {
- return base::SysUTF16ToNSString(profile->GetInfo(
- autofill::AutofillType(autofill::PHONE_HOME_WHOLE_NUMBER),
- GetApplicationContext()->GetApplicationLocale()));
-}
-
} // namespace payment_request_utils
« no previous file with comments | « ios/chrome/browser/payments/payment_request_utils.h ('k') | ios/chrome/browser/payments/payment_request_view_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698