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

Unified Diff: components/autofill/core/browser/address_i18n.cc

Issue 368243007: Reland of "Use address_data.h from upstream libaddressinput". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update BUILD.gn, fix a test. Created 6 years, 5 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/core/browser/address_i18n.cc
diff --git a/components/autofill/core/browser/address_i18n.cc b/components/autofill/core/browser/address_i18n.cc
index 91349fb9893cb13ad4a5365b8bacc53f950b40bf..d1acfda5431365d54db46b94806aa5b7c56d224a 100644
--- a/components/autofill/core/browser/address_i18n.cc
+++ b/components/autofill/core/browser/address_i18n.cc
@@ -33,7 +33,7 @@ scoped_ptr<AddressData> CreateAddressData(
scoped_ptr<AddressData> address_data(new AddressData());
address_data->recipient = base::UTF16ToUTF8(
get_info.Run(AutofillType(NAME_FULL)));
- address_data->country_code = base::UTF16ToUTF8(
+ address_data->region_code = base::UTF16ToUTF8(
get_info.Run(AutofillType(HTML_TYPE_COUNTRY_CODE, HTML_MODE_NONE)));
address_data->administrative_area = base::UTF16ToUTF8(
get_info.Run(AutofillType(ADDRESS_HOME_STATE)));
@@ -49,7 +49,7 @@ scoped_ptr<AddressData> CreateAddressData(
base::UTF16ToUTF8(
get_info.Run(AutofillType(ADDRESS_HOME_STREET_ADDRESS))),
'\n',
- &address_data->address_lines);
+ &address_data->address_line);
return address_data.Pass();
}
« no previous file with comments | « chrome/browser/ui/autofill/mock_address_validator.h ('k') | components/autofill/core/browser/autofill_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698