OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/autofill/core/browser/autofill_profile.h" | 5 #include "components/autofill/core/browser/autofill_profile.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <map> | 9 #include <map> |
10 #include <ostream> | 10 #include <ostream> |
11 #include <set> | 11 #include <set> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/guid.h" | 14 #include "base/guid.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "components/autofill/core/browser/address.h" | 18 #include "components/autofill/core/browser/address.h" |
19 #include "components/autofill/core/browser/address_i18n.h" | 19 #include "components/autofill/core/browser/address_i18n.h" |
20 #include "components/autofill/core/browser/autofill_country.h" | 20 #include "components/autofill/core/browser/autofill_country.h" |
21 #include "components/autofill/core/browser/autofill_field.h" | 21 #include "components/autofill/core/browser/autofill_field.h" |
22 #include "components/autofill/core/browser/autofill_type.h" | 22 #include "components/autofill/core/browser/autofill_type.h" |
23 #include "components/autofill/core/browser/contact_info.h" | 23 #include "components/autofill/core/browser/contact_info.h" |
24 #include "components/autofill/core/browser/phone_number.h" | 24 #include "components/autofill/core/browser/phone_number.h" |
25 #include "components/autofill/core/browser/phone_number_i18n.h" | 25 #include "components/autofill/core/browser/phone_number_i18n.h" |
26 #include "components/autofill/core/browser/validation.h" | 26 #include "components/autofill/core/browser/validation.h" |
27 #include "components/autofill/core/common/form_field_data.h" | 27 #include "components/autofill/core/common/form_field_data.h" |
28 #include "grit/components_strings.h" | 28 #include "grit/components_strings.h" |
29 #include "third_party/libaddressinput/chromium/addressinput_util.h" | 29 #include "third_party/libaddressinput/chromium/addressinput_util.h" |
30 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_da
ta.h" | 30 #include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/addre
ss_data.h" |
31 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_fo
rmatter.h" | 31 #include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/addre
ss_formatter.h" |
32 #include "ui/base/l10n/l10n_util.h" | 32 #include "ui/base/l10n/l10n_util.h" |
33 | 33 |
34 using base::ASCIIToUTF16; | 34 using base::ASCIIToUTF16; |
35 using base::UTF16ToUTF8; | 35 using base::UTF16ToUTF8; |
36 | 36 |
37 namespace autofill { | 37 namespace autofill { |
38 namespace { | 38 namespace { |
39 | 39 |
40 // Like |AutofillType::GetStorableType()|, but also returns |NAME_FULL| for | 40 // Like |AutofillType::GetStorableType()|, but also returns |NAME_FULL| for |
41 // first, middle, and last name field types. | 41 // first, middle, and last name field types. |
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_SORTING_CODE)) | 922 << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_SORTING_CODE)) |
923 << " " | 923 << " " |
924 << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_COUNTRY)) | 924 << UTF16ToUTF8(profile.GetRawInfo(ADDRESS_HOME_COUNTRY)) |
925 << " " | 925 << " " |
926 << profile.language_code() | 926 << profile.language_code() |
927 << " " | 927 << " " |
928 << UTF16ToUTF8(MultiString(profile, PHONE_HOME_WHOLE_NUMBER)); | 928 << UTF16ToUTF8(MultiString(profile, PHONE_HOME_WHOLE_NUMBER)); |
929 } | 929 } |
930 | 930 |
931 } // namespace autofill | 931 } // namespace autofill |
OLD | NEW |