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

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

Issue 1280473002: Update ToLower/UpperASCII API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/core/browser/autofill_country.cc
diff --git a/components/autofill/core/browser/autofill_country.cc b/components/autofill/core/browser/autofill_country.cc
index 5ed82bd58b20a3130e38d4a2ed13763ce1beff24..32b2139683945dd4ae29003f455e202dec804707 100644
--- a/components/autofill/core/browser/autofill_country.cc
+++ b/components/autofill/core/browser/autofill_country.cc
@@ -937,10 +937,8 @@ CountryNames::~CountryNames() {
const std::string CountryNames::GetCountryCode(const base::string16& country,
const std::string& locale) {
// First, check common country names, including 2- and 3-letter country codes.
- std::string country_utf8 = base::UTF16ToUTF8(
- base::StringToUpperASCII(country));
- std::map<std::string, std::string>::const_iterator result =
- common_names_.find(country_utf8);
+ std::string country_utf8 = base::UTF16ToUTF8(base::ToUpperASCII(country));
+ const auto result = common_names_.find(country_utf8);
if (result != common_names_.end())
return result->second;
« 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