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

Unified Diff: chrome/browser/ui/search_engines/template_url_table_model.h

Issue 15805002: Modify extension omnibox keywords to be user-configurable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test updates Created 7 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/ui/search_engines/template_url_table_model.h
diff --git a/chrome/browser/ui/search_engines/template_url_table_model.h b/chrome/browser/ui/search_engines/template_url_table_model.h
index cedd5524e6011aab2b0a47d7312695f789a97bf0..6ee70b91eeabf34240a4ef76eb93621206a3df65 100644
--- a/chrome/browser/ui/search_engines/template_url_table_model.h
+++ b/chrome/browser/ui/search_engines/template_url_table_model.h
@@ -97,6 +97,10 @@ class TemplateURLTableModel : public ui::TableModel,
// Returns the index of the last entry shown in the search engines group.
int last_search_engine_index() const { return last_search_engine_index_; }
+ // Returns the index of the last entry shown in the other search engines
+ // group.
+ int last_other_engine_index() const { return last_other_engine_index_; }
+
private:
friend class ModelEntry;
@@ -118,6 +122,10 @@ class TemplateURLTableModel : public ui::TableModel,
// group boundaries.
int last_search_engine_index_;
+ // Index of the last other engine in entries_. This is used to determine the
+ // group boundaries.
+ int last_other_engine_index_;
+
DISALLOW_COPY_AND_ASSIGN(TemplateURLTableModel);
};

Powered by Google App Engine
This is Rietveld 408576698