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 |
(...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1270 // Then check the alternate URLs. | 1270 // Then check the alternate URLs. |
1271 for (size_t j = 0; j < kAllEngines[i]->alternate_urls_size; ++j) { | 1271 for (size_t j = 0; j < kAllEngines[i]->alternate_urls_size; ++j) { |
1272 if (SameDomain(url, GURL(kAllEngines[i]->alternate_urls[j]))) | 1272 if (SameDomain(url, GURL(kAllEngines[i]->alternate_urls[j]))) |
1273 return kAllEngines[i]->type; | 1273 return kAllEngines[i]->type; |
1274 } | 1274 } |
1275 } | 1275 } |
1276 | 1276 |
1277 return SEARCH_ENGINE_OTHER; | 1277 return SEARCH_ENGINE_OTHER; |
1278 } | 1278 } |
1279 | 1279 |
1280 #if defined(OS_IOS) | |
1281 | |
1282 // GetDefaultCountryID is an exported alias of GetCurrentCountryID that is | |
1283 // defined the anonymous namespace (with different implementation per OS). | |
1284 int GetDefaultCountryID() { | |
1285 return GetCurrentCountryID(); | |
Peter Kasting
2015/05/13 23:12:59
What implementation does this actually use? OS_PO
sdefresne
2015/05/18 09:47:19
Done.
| |
1286 } | |
1287 | |
1288 #endif | |
1289 | |
1280 } // namespace TemplateURLPrepopulateData | 1290 } // namespace TemplateURLPrepopulateData |
OLD | NEW |