Chromium Code Reviews| Index: components/autofill/browser/phone_number.cc |
| =================================================================== |
| --- components/autofill/browser/phone_number.cc (revision 192389) |
| +++ components/autofill/browser/phone_number.cc (working copy) |
| @@ -34,9 +34,9 @@ |
| // code corresponding to the |app_locale|. |
| std::string GetRegion(const AutofillProfile& profile, |
| const std::string& app_locale) { |
| - std::string country_code = profile.CountryCode(); |
| + string16 country_code = profile.GetRawInfo(ADDRESS_HOME_COUNTRY); |
| if (!country_code.empty()) |
| - return country_code; |
| + return WideToASCII(country_code); |
|
Ilya Sherman
2013/04/05 05:18:01
I think you want UTF16ToASCII here.
jam
2013/04/05 06:45:54
yeah that was a mistake, fixed already
|
| return AutofillCountry::CountryCodeForLocale(app_locale); |
| } |