rcaps: Move the resolution of the country-aware engine list to rcaps
Instead of pulling the country from regional_capabilities and looking
up the right prepopulation set from regional settings, the search
engine component now defers all of it to regional_capabilities. The
TemplateURLPrepopulateData[Resolver]'s responsibility is now to
convert the configuration to Template URLs and handle search provider
overrides.
With this we get rid of TemplateURLPrepopulateData::Resolver's need to
get access to the profile country.
Bug: 328040066
Change-Id: I52d742b862147c1060a7fd07e2966abb98858984
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6372561
Commit-Queue: Tomasz Wiszkowski <[email protected]>
Auto-Submit: Nicolas Dossou-Gbété <[email protected]>
Reviewed-by: Dominic Battré <[email protected]>
Reviewed-by: Tomasz Wiszkowski <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1443608}
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 545ef3fb..98bb841 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -919,7 +919,7 @@
r'content/browser/webid/federated_auth_request_impl\.cc',
r'media/cast/test/utility/udp_proxy\.h',
r'sql/recover_module/module_unittest\.cc',
- r'components/search_engines/template_url_prepopulate_data.cc',
+ r'components/regional_capabilities/regional_capabilities_utils.cc',
# Do not add new entries to this list. If you have a use case which is
# not satisfied by the current APIs (i.e. you need an explicitly-seeded
# sequence, or stability of some sort is required), please contact