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

Unified Diff: components/autofill/core/browser/autofill_profile.cc

Issue 176843022: Move UTF16ToASCII, remove WideToASCII. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: components/autofill/core/browser/autofill_profile.cc
diff --git a/components/autofill/core/browser/autofill_profile.cc b/components/autofill/core/browser/autofill_profile.cc
index 661387adf9f90fabe5cdfc6ba743c0a54a422127..3e7e7aa14c5a5195f8b7fa5bca780f49c3c042a7 100644
--- a/components/autofill/core/browser/autofill_profile.cc
+++ b/components/autofill/core/browser/autofill_profile.cc
@@ -482,7 +482,7 @@ bool AutofillProfile::IsSubsetOf(const AutofillProfile& profile,
} else if (!i18n::PhoneNumbersMatch(
GetRawInfo(*it),
profile.GetRawInfo(*it),
- UTF16ToASCII(GetRawInfo(ADDRESS_HOME_COUNTRY)),
+ base::UTF16ToASCII(GetRawInfo(ADDRESS_HOME_COUNTRY)),
app_locale)) {
return false;
}
@@ -650,7 +650,8 @@ void AutofillProfile::AddPhoneIfUnique(
DCHECK(existing_phones);
// Phones allow "fuzzy" matching, so "1-800-FLOWERS", "18003569377",
// "(800)356-9377" and "356-9377" are considered the same.
- std::string country_code = UTF16ToASCII(GetRawInfo(ADDRESS_HOME_COUNTRY));
+ std::string country_code =
+ base::UTF16ToASCII(GetRawInfo(ADDRESS_HOME_COUNTRY));
if (std::find_if(existing_phones->begin(), existing_phones->end(),
FindByPhone(phone, country_code, app_locale)) ==
existing_phones->end()) {
« no previous file with comments | « components/autofill/core/browser/address.cc ('k') | components/autofill/core/browser/personal_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698