Chromium Code Reviews| Index: chrome/browser/ui/search_engines/template_url_table_model.cc |
| diff --git a/chrome/browser/ui/search_engines/template_url_table_model.cc b/chrome/browser/ui/search_engines/template_url_table_model.cc |
| index bbfb283c9d0a946e812b563c12e54bb59952919b..7ef83d07fcd5de60e7b8aaa1134ec9dbd817a016 100644 |
| --- a/chrome/browser/ui/search_engines/template_url_table_model.cc |
| +++ b/chrome/browser/ui/search_engines/template_url_table_model.cc |
| @@ -143,9 +143,7 @@ void TemplateURLTableModel::Reload() { |
| extension_entries; |
| // Keywords that can be made the default first. |
| for (auto* template_url : urls) { |
| - // NOTE: we don't use ShowInDefaultList here to avoid items bouncing around |
| - // the lists while editing. |
| - if (template_url->show_in_default_list()) |
| + if (template_url_service_->ShowInDefaultList(template_url)) |
|
Peter Kasting
2016/11/10 06:41:06
Nit: While here: This code is out of compliance wi
ltian
2016/11/11 03:52:13
Done.
|
| default_entries.push_back( |
| base::MakeUnique<ModelEntry>(this, template_url)); |
| else if (template_url->type() == TemplateURL::OMNIBOX_API_EXTENSION) |