mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 03:47:44 -03:00
Update for M98
This commit is contained in:
parent
e04e7cc2ef
commit
ba7e522ad6
1 changed files with 3 additions and 5 deletions
|
@ -1342,11 +1342,9 @@ std::vector<std::unique_ptr<TemplateURLData>> GetPrepopulatedTemplateURLData(
|
|||
if (!list)
|
||||
return t_urls;
|
||||
|
||||
size_t num_engines = list->GetList().size();
|
||||
for (size_t i = 0; i != num_engines; ++i) {
|
||||
const base::DictionaryValue* engine;
|
||||
if (list->GetDictionary(i, &engine)) {
|
||||
auto t_url = TemplateURLDataFromOverrideDictionary(*engine);
|
||||
for (const base::Value& engine : list->GetList()) {
|
||||
if (engine.is_dict()) {
|
||||
auto t_url = TemplateURLDataFromOverrideDictionary(engine);
|
||||
if (t_url)
|
||||
t_urls.push_back(std::move(t_url));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue