OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/autofill/address.h" | 5 #include "components/autofill/browser/address.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "chrome/browser/autofill/autofill_country.h" | 12 #include "components/autofill/browser/autofill_country.h" |
13 #include "chrome/browser/autofill/autofill_type.h" | 13 #include "components/autofill/browser/autofill_type.h" |
14 #include "chrome/browser/autofill/field_types.h" | 14 #include "components/autofill/browser/field_types.h" |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 const char16 kAddressSplitChars[] = {'-', ',', '#', '.', ' ', 0}; | 18 const char16 kAddressSplitChars[] = {'-', ',', '#', '.', ' ', 0}; |
19 | 19 |
20 } // namespace | 20 } // namespace |
21 | 21 |
22 Address::Address() {} | 22 Address::Address() {} |
23 | 23 |
24 Address::Address(const Address& address) : FormGroup() { | 24 Address::Address(const Address& address) : FormGroup() { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 matching_types->insert(ADDRESS_HOME_COUNTRY); | 105 matching_types->insert(ADDRESS_HOME_COUNTRY); |
106 } | 106 } |
107 | 107 |
108 string16 Address::Country() const { | 108 string16 Address::Country() const { |
109 if (country_code().empty()) | 109 if (country_code().empty()) |
110 return string16(); | 110 return string16(); |
111 | 111 |
112 std::string app_locale = AutofillCountry::ApplicationLocale(); | 112 std::string app_locale = AutofillCountry::ApplicationLocale(); |
113 return AutofillCountry(country_code(), app_locale).name(); | 113 return AutofillCountry(country_code(), app_locale).name(); |
114 } | 114 } |
OLD | NEW |