OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/search_engines/template_url_prepopulate_data.h" | 5 #include "components/search_engines/template_url_prepopulate_data.h" |
6 | 6 |
7 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 7 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
8 #include <locale.h> | 8 #include <locale.h> |
9 #endif | 9 #endif |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/stl_util.h" | |
14 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
15 #include "base/strings/string_piece.h" | 14 #include "base/strings/string_piece.h" |
16 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
17 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
18 #include "build/build_config.h" | 17 #include "build/build_config.h" |
19 #include "components/google/core/browser/google_util.h" | 18 #include "components/google/core/browser/google_util.h" |
20 #include "components/pref_registry/pref_registry_syncable.h" | 19 #include "components/pref_registry/pref_registry_syncable.h" |
21 #include "components/prefs/pref_service.h" | 20 #include "components/prefs/pref_service.h" |
22 #include "components/search_engines/prepopulated_engines.h" | 21 #include "components/search_engines/prepopulated_engines.h" |
23 #include "components/search_engines/search_engines_pref_names.h" | 22 #include "components/search_engines/search_engines_pref_names.h" |
(...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1261 base::ToUpperASCII(locale_str[begin]), | 1260 base::ToUpperASCII(locale_str[begin]), |
1262 base::ToUpperASCII(locale_str[begin + 1])); | 1261 base::ToUpperASCII(locale_str[begin + 1])); |
1263 } | 1262 } |
1264 | 1263 |
1265 return kCountryIDUnknown; | 1264 return kCountryIDUnknown; |
1266 } | 1265 } |
1267 | 1266 |
1268 #endif // OS_* | 1267 #endif // OS_* |
1269 | 1268 |
1270 } // namespace TemplateURLPrepopulateData | 1269 } // namespace TemplateURLPrepopulateData |
OLD | NEW |