Index: components/autofill/core/browser/autofill_profile.cc |
diff --git a/components/autofill/core/browser/autofill_profile.cc b/components/autofill/core/browser/autofill_profile.cc |
index 3b242a953e44b315816de8d3b78d5aa84ae0e0f4..5826ad730f3321e08223fa3cf59a6788acecdd8d 100644 |
--- a/components/autofill/core/browser/autofill_profile.cc |
+++ b/components/autofill/core/browser/autofill_profile.cc |
@@ -26,7 +26,9 @@ |
#include "components/autofill/core/browser/validation.h" |
#include "components/autofill/core/common/form_field_data.h" |
#include "grit/components_strings.h" |
-#include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_data.h" |
+#include "third_party/libaddressinput/chromium/has_all_required_fields.h" |
+#include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_data.h" |
+#include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_formatter.h" |
#include "ui/base/l10n/l10n_util.h" |
using base::ASCIIToUTF16; |
@@ -298,11 +300,11 @@ base::string16 AutofillProfile::GetInfo(const AutofillType& type, |
if (type.html_type() == HTML_TYPE_FULL_ADDRESS) { |
scoped_ptr< ::i18n::addressinput::AddressData> address_data = |
i18n::CreateAddressDataFromAutofillProfile(*this, app_locale); |
- if (!address_data->HasAllRequiredFields()) |
+ if (!addressinput::HasAllRequiredFields(*address_data)) |
return base::string16(); |
std::vector<std::string> lines; |
- address_data->FormatForDisplay(&lines); |
+ ::i18n::addressinput::GetFormattedNationalAddress(*address_data, &lines); |
return base::UTF8ToUTF16(JoinString(lines, '\n')); |
} |