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

Unified Diff: chrome/browser/search_engines/template_url_table_model.cc

Issue 2078021: First pass at experimental omnibox API. There are plenty of rough edges and (Closed)
Patch Set: no prefer_keyword Created 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/search_engines/template_url_table_model.cc
diff --git a/chrome/browser/search_engines/template_url_table_model.cc b/chrome/browser/search_engines/template_url_table_model.cc
index dcad47e63e471577f25dd3524c8d8eedbd29f6fe..653cf7e4cecd07107161957952d26594cac6cd4b 100644
--- a/chrome/browser/search_engines/template_url_table_model.cc
+++ b/chrome/browser/search_engines/template_url_table_model.cc
@@ -159,7 +159,8 @@ void TemplateURLTableModel::Reload() {
const TemplateURL* template_url = *i;
// NOTE: we don't use ShowInDefaultList here to avoid things bouncing
// the lists while editing.
- if (!template_url->show_in_default_list())
+ if (!template_url->show_in_default_list() &&
+ !template_url->IsExtensionKeyword())
entries_.push_back(new ModelEntry(this, *template_url));
}
« no previous file with comments | « chrome/browser/search_engines/template_url_model.cc ('k') | chrome/browser/views/location_bar/keyword_hint_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698