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

Unified Diff: components/autofill/content/browser/wallet/form_field_error.cc

Issue 448143008: Move StringToUpperASCII and LowerCaseEqualsASCII to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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: components/autofill/content/browser/wallet/form_field_error.cc
diff --git a/components/autofill/content/browser/wallet/form_field_error.cc b/components/autofill/content/browser/wallet/form_field_error.cc
index 826ea37df2c1c38ce24fdf6add7ecba5b6d44b9c..5d254a06667140e303fae29f2069613cd8e46f37 100644
--- a/components/autofill/content/browser/wallet/form_field_error.cc
+++ b/components/autofill/content/browser/wallet/form_field_error.cc
@@ -15,35 +15,35 @@ namespace wallet {
namespace {
FormFieldError::ErrorType ErrorTypeFromString(const std::string& error_type) {
- if (LowerCaseEqualsASCII(error_type, "unknown_error"))
+ if (base::LowerCaseEqualsASCII(error_type, "unknown_error"))
return FormFieldError::UNKNOWN_ERROR;
- if (LowerCaseEqualsASCII(error_type, "invalid_phone_number"))
+ if (base::LowerCaseEqualsASCII(error_type, "invalid_phone_number"))
return FormFieldError::INVALID_PHONE_NUMBER;
- if (LowerCaseEqualsASCII(error_type, "invalid_postal_code"))
+ if (base::LowerCaseEqualsASCII(error_type, "invalid_postal_code"))
return FormFieldError::INVALID_POSTAL_CODE;
- if (LowerCaseEqualsASCII(error_type, "invalid_address"))
+ if (base::LowerCaseEqualsASCII(error_type, "invalid_address"))
return FormFieldError::INVALID_ADDRESS;
- if (LowerCaseEqualsASCII(error_type, "invalid_card_details"))
+ if (base::LowerCaseEqualsASCII(error_type, "invalid_card_details"))
return FormFieldError::INVALID_CARD_DETAILS;
- if (LowerCaseEqualsASCII(error_type, "invalid_city"))
+ if (base::LowerCaseEqualsASCII(error_type, "invalid_city"))
return FormFieldError::INVALID_CITY;
- if (LowerCaseEqualsASCII(error_type, "invalid_instrument"))
+ if (base::LowerCaseEqualsASCII(error_type, "invalid_instrument"))
return FormFieldError::INVALID_INSTRUMENT;
- if (LowerCaseEqualsASCII(error_type, "invalid_state"))
+ if (base::LowerCaseEqualsASCII(error_type, "invalid_state"))
return FormFieldError::INVALID_STATE;
- if (LowerCaseEqualsASCII(error_type, "required_field_not_set"))
+ if (base::LowerCaseEqualsASCII(error_type, "required_field_not_set"))
return FormFieldError::REQUIRED_FIELD_NOT_SET;
return FormFieldError::UNKNOWN_ERROR;
}
FormFieldError::Location LocationFromString(const std::string& location) {
- if (LowerCaseEqualsASCII(location, "unknown_location"))
+ if (base::LowerCaseEqualsASCII(location, "unknown_location"))
return FormFieldError::UNKNOWN_LOCATION;
- if (LowerCaseEqualsASCII(location, "payment_instrument"))
+ if (base::LowerCaseEqualsASCII(location, "payment_instrument"))
return FormFieldError::PAYMENT_INSTRUMENT;
- if (LowerCaseEqualsASCII(location, "shipping_address"))
+ if (base::LowerCaseEqualsASCII(location, "shipping_address"))
return FormFieldError::SHIPPING_ADDRESS;
- if (LowerCaseEqualsASCII(location, "legal_address"))
+ if (base::LowerCaseEqualsASCII(location, "legal_address"))
return FormFieldError::LEGAL_ADDRESS;
return FormFieldError::UNKNOWN_LOCATION;
}
« no previous file with comments | « chrome/utility/importer/ie_importer_win.cc ('k') | components/autofill/content/browser/wallet/wallet_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698