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

Unified Diff: chrome/browser/ui/webui/options/autofill_options_handler.cc

Issue 13697002: Make autofill's Address store country using the country code so that app locale isn't needed for th… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix remaining tests 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: chrome/browser/ui/webui/options/autofill_options_handler.cc
===================================================================
--- chrome/browser/ui/webui/options/autofill_options_handler.cc (revision 192389)
+++ chrome/browser/ui/webui/options/autofill_options_handler.cc (working copy)
@@ -443,7 +443,7 @@
address.SetString("city", profile->GetRawInfo(ADDRESS_HOME_CITY));
address.SetString("state", profile->GetRawInfo(ADDRESS_HOME_STATE));
address.SetString("postalCode", profile->GetRawInfo(ADDRESS_HOME_ZIP));
- address.SetString("country", profile->CountryCode());
+ address.SetString("country", profile->GetRawInfo(ADDRESS_HOME_COUNTRY));
GetValueList(*profile, PHONE_HOME_WHOLE_NUMBER, &list);
address.Set("phone", list.release());
GetValueList(*profile, EMAIL_ADDRESS, &list);
@@ -524,7 +524,7 @@
profile.SetRawInfo(ADDRESS_HOME_ZIP, value);
if (args->GetString(8, &country_code))
- profile.SetCountryCode(country_code);
+ profile.SetRawInfo(ADDRESS_HOME_COUNTRY, ASCIIToUTF16(country_code));
if (args->GetList(9, &list_value))
SetValueList(list_value, PHONE_HOME_WHOLE_NUMBER, &profile);

Powered by Google App Engine
This is Rietveld 408576698