OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/country_data.h" | 5 #include "components/autofill/core/browser/country_data.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
10 #include "grit/components_strings.h" | 10 #include "components/strings/grit/components_strings.h" |
11 #include "third_party/icu/source/common/unicode/locid.h" | 11 #include "third_party/icu/source/common/unicode/locid.h" |
12 | 12 |
13 namespace autofill { | 13 namespace autofill { |
14 namespace { | 14 namespace { |
15 | 15 |
16 struct StaticCountryData { | 16 struct StaticCountryData { |
17 char country_code[3]; | 17 char country_code[3]; |
18 CountryData country_data; | 18 CountryData country_data; |
19 }; | 19 }; |
20 | 20 |
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 CountryDataMap* CountryDataMap::GetInstance() { | 818 CountryDataMap* CountryDataMap::GetInstance() { |
819 return base::Singleton<CountryDataMap>::get(); | 819 return base::Singleton<CountryDataMap>::get(); |
820 } | 820 } |
821 | 821 |
822 CountryDataMap::CountryDataMap() | 822 CountryDataMap::CountryDataMap() |
823 : country_data_(GetCountryData()), country_codes_(GetCountryCodes()) {} | 823 : country_data_(GetCountryData()), country_codes_(GetCountryCodes()) {} |
824 | 824 |
825 CountryDataMap::~CountryDataMap() = default; | 825 CountryDataMap::~CountryDataMap() = default; |
826 | 826 |
827 } // namespace autofill | 827 } // namespace autofill |
OLD | NEW |