OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/autofill_country.h" | 5 #include "chrome/browser/autofill/autofill_country.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <map> | 9 #include <map> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
16 #include "base/string_util.h" | 16 #include "base/string_util.h" |
17 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/browser/content_browser_client.h" | 19 #include "content/public/browser/content_browser_client.h" |
20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
| 21 #include "third_party/icu/public/common/unicode/locid.h" |
| 22 #include "third_party/icu/public/common/unicode/uloc.h" |
| 23 #include "third_party/icu/public/common/unicode/unistr.h" |
| 24 #include "third_party/icu/public/common/unicode/urename.h" |
| 25 #include "third_party/icu/public/common/unicode/utypes.h" |
| 26 #include "third_party/icu/public/i18n/unicode/coll.h" |
| 27 #include "third_party/icu/public/i18n/unicode/ucol.h" |
21 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
22 #include "unicode/coll.h" | |
23 #include "unicode/locid.h" | |
24 #include "unicode/ucol.h" | |
25 #include "unicode/uloc.h" | |
26 #include "unicode/unistr.h" | |
27 #include "unicode/urename.h" | |
28 #include "unicode/utypes.h" | |
29 | 29 |
30 using content::BrowserThread; | 30 using content::BrowserThread; |
31 | 31 |
32 namespace { | 32 namespace { |
33 | 33 |
34 // The maximum capacity needed to store a locale up to the country code. | 34 // The maximum capacity needed to store a locale up to the country code. |
35 const size_t kLocaleCapacity = | 35 const size_t kLocaleCapacity = |
36 ULOC_LANG_CAPACITY + ULOC_SCRIPT_CAPACITY + ULOC_COUNTRY_CAPACITY + 1; | 36 ULOC_LANG_CAPACITY + ULOC_SCRIPT_CAPACITY + ULOC_COUNTRY_CAPACITY + 1; |
37 | 37 |
38 struct CountryData { | 38 struct CountryData { |
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
878 | 878 |
879 AutofillCountry::AutofillCountry(const std::string& country_code, | 879 AutofillCountry::AutofillCountry(const std::string& country_code, |
880 const string16& name, | 880 const string16& name, |
881 const string16& postal_code_label, | 881 const string16& postal_code_label, |
882 const string16& state_label) | 882 const string16& state_label) |
883 : country_code_(country_code), | 883 : country_code_(country_code), |
884 name_(name), | 884 name_(name), |
885 postal_code_label_(postal_code_label), | 885 postal_code_label_(postal_code_label), |
886 state_label_(state_label) { | 886 state_label_(state_label) { |
887 } | 887 } |
OLD | NEW |