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

Unified Diff: components/autofill/browser/wallet/wallet_address.cc

Issue 13488009: Remove application locale cache in autofill code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 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/browser/wallet/wallet_address.cc
===================================================================
--- components/autofill/browser/wallet/wallet_address.cc (revision 192613)
+++ components/autofill/browser/wallet/wallet_address.cc (working copy)
@@ -233,7 +233,8 @@
#endif
}
-string16 Address::GetInfo(AutofillFieldType type) const {
+string16 Address::GetInfo(AutofillFieldType type,
+ const std::string& app_locale) const {
switch (type) {
case NAME_FULL:
return recipient_name();
@@ -254,8 +255,7 @@
return postal_code_number();
case ADDRESS_HOME_COUNTRY: {
- AutofillCountry country(country_name_code(),
- AutofillCountry::ApplicationLocale());
+ AutofillCountry country(country_name_code(), app_locale);
return country.name();
}
« no previous file with comments | « components/autofill/browser/wallet/wallet_address.h ('k') | components/autofill/browser/wallet/wallet_items.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698