| Index: chrome/browser/autofill/autofill_country.cc
|
| diff --git a/chrome/browser/autofill/autofill_country.cc b/chrome/browser/autofill/autofill_country.cc
|
| index 7cc8a45b6a949e03be8aed391c997a63bcc7225b..3a5c947050b2862e4680512d81c41c31925bb42c 100644
|
| --- a/chrome/browser/autofill/autofill_country.cc
|
| +++ b/chrome/browser/autofill/autofill_country.cc
|
| @@ -387,7 +387,9 @@ const std::string AutofillCountry::CountryCodeForLocale(
|
| std::string country_code = icu::Locale(likely_locale.c_str()).getCountry();
|
|
|
| // Default to the United States if we have no better guess.
|
| - return !country_code.empty() ? country_code : "US";
|
| + if (!AutofillCountries::countries().count(country_code))
|
| + return "US";
|
| + return country_code;
|
| }
|
|
|
| // static
|
|
|