Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Side by Side Diff: components/search_engines/template_url_prepopulate_data.cc

Issue 1130183004: [iOS] Expose TemplateURLPrepopulateData::GetCurrentCountryID() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 int GetCurrentCountryID() {
1283 return GetCountryIDFromPrefs(nullptr);
Peter Kasting 2015/05/12 18:49:13 This infinite loops, doesn't it? The first thing
sdefresne 2015/05/13 12:47:12 No because there are two methods called GetCurrent
1284 }
1285
1286 #endif
1287
1280 } // namespace TemplateURLPrepopulateData 1288 } // namespace TemplateURLPrepopulateData
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698