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

Unified Diff: components/autofill/core/browser/address.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/address.cc
diff --git a/components/autofill/core/browser/address.cc b/components/autofill/core/browser/address.cc
index 031ff6b808e1b488b0e58814c010721e0a724dc5..de6514794d01becd9d229df36f4e7f19716e17ed 100644
--- a/components/autofill/core/browser/address.cc
+++ b/components/autofill/core/browser/address.cc
@@ -108,7 +108,7 @@ void Address::SetRawInfo(ServerFieldType type, const base::string16& value) {
case ADDRESS_HOME_COUNTRY:
DCHECK(value.empty() ||
(value.length() == 2u && IsStringASCII(value)));
- country_code_ = UTF16ToASCII(value);
+ country_code_ = base::UTF16ToASCII(value);
break;
case ADDRESS_HOME_ZIP:
@@ -149,7 +149,7 @@ bool Address::SetInfo(const AutofillType& type,
return false;
}
- country_code_ = StringToUpperASCII(UTF16ToASCII(value));
+ country_code_ = StringToUpperASCII(base::UTF16ToASCII(value));
return true;
}
« no previous file with comments | « components/autofill/content/browser/wallet/wallet_address.cc ('k') | components/autofill/core/browser/autofill_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698