Chromium Code Reviews| Index: chrome/browser/autofill/autofill_country.cc |
| diff --git a/chrome/browser/autofill/autofill_country.cc b/chrome/browser/autofill/autofill_country.cc |
| index 11b7ef0f9ebebdc8f9568aeb4ea89251de626d49..610c0d87e49c1b94d010f106c9689446b90eb843 100644 |
| --- a/chrome/browser/autofill/autofill_country.cc |
| +++ b/chrome/browser/autofill/autofill_country.cc |
| @@ -623,6 +623,11 @@ const std::string AutofillCountry::ApplicationLocale() { |
| return g_browser_process->GetApplicationLocale(); |
| } |
| +bool AutofillCountry::IsValidCountry(const string16& value) { |
| + std::string app_locale = ApplicationLocale(); |
| + return !GetCountryCode(value, app_locale).empty(); |
| +} |
| + |
| AutofillCountry::AutofillCountry(const std::string& country_code, |
| const string16& name, |
| const string16& postal_code_label, |
| @@ -632,3 +637,4 @@ AutofillCountry::AutofillCountry(const std::string& country_code, |
| postal_code_label_(postal_code_label), |
| state_label_(state_label) { |
| } |
| + |
|
Ilya Sherman
2011/03/16 04:58:57
nit: This line is extraneous.
dhollowa
2011/03/16 16:13:35
Done.
|