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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc

Issue 261013010: autocomplete: add ability to get full address (hidden behind a flag). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GCC weirdness Created 6 years, 7 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/autofill/autofill_dialog_i18n_input.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc b/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc
index 5dc33e3ca7fcaa7ac0e893d1fb92cb964ab64a4e..1ef080bad9602401601b5aafcac7b60ca68ddd30 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc
@@ -203,29 +203,6 @@ bool FieldForType(ServerFieldType server_type,
}
}
-void CreateAddressData(
- const base::Callback<base::string16(const AutofillType&)>& get_info,
- AddressData* address_data) {
- address_data->recipient = UTF16ToUTF8(get_info.Run(AutofillType(NAME_FULL)));
- address_data->country_code = UTF16ToUTF8(
- get_info.Run(AutofillType(HTML_TYPE_COUNTRY_CODE, HTML_MODE_SHIPPING)));
- DCHECK_EQ(2U, address_data->country_code.size());
- address_data->administrative_area = UTF16ToUTF8(
- get_info.Run(AutofillType(ADDRESS_HOME_STATE)));
- address_data->locality = UTF16ToUTF8(
- get_info.Run(AutofillType(ADDRESS_HOME_CITY)));
- address_data->dependent_locality = UTF16ToUTF8(
- get_info.Run(AutofillType(ADDRESS_HOME_DEPENDENT_LOCALITY)));
- address_data->sorting_code = UTF16ToUTF8(
- get_info.Run(AutofillType(ADDRESS_HOME_SORTING_CODE)));
- address_data->postal_code = UTF16ToUTF8(
- get_info.Run(AutofillType(ADDRESS_HOME_ZIP)));
- base::SplitString(
- UTF16ToUTF8(get_info.Run(AutofillType(ADDRESS_HOME_STREET_ADDRESS))),
- '\n',
- &address_data->address_lines);
-}
-
bool CountryIsFullySupported(const std::string& country_code) {
DCHECK_EQ(2U, country_code.size());
std::vector< ::i18n::addressinput::AddressUiComponent> components =

Powered by Google App Engine
This is Rietveld 408576698