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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc

Issue 2873423002: Omnibox UI Experiments: Add flag to change max autocomplete matches. (Closed)
Patch Set: fix merge' Created 3 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
« no previous file with comments | « chrome/browser/flag_descriptions.cc ('k') | components/omnibox/browser/autocomplete_result.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
index 1d487dd4998bbe2c6110b0508d272ed6f281fdf2..8c5563303cd3529c20e9f013fb357e4dde5716a3 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
@@ -119,7 +119,7 @@ void OmniboxPopupContentsView::Init() {
// This can't be done in the constructor as at that point we aren't
// necessarily our final class yet, and we may have subclasses
// overriding CreateResultView.
- for (size_t i = 0; i < AutocompleteResult::kMaxMatches; ++i) {
+ for (size_t i = 0; i < AutocompleteResult::GetMaxMatches(); ++i) {
OmniboxResultView* result_view = CreateResultView(i, font_list_);
result_view->SetVisible(false);
AddChildViewAt(result_view, static_cast<int>(i));
@@ -155,7 +155,7 @@ void OmniboxPopupContentsView::LayoutChildren() {
0);
int top = contents_rect.y();
- for (size_t i = 0; i < AutocompleteResult::kMaxMatches; ++i) {
+ for (size_t i = 0; i < AutocompleteResult::GetMaxMatches(); ++i) {
View* v = child_at(i);
if (v->visible()) {
v->SetBounds(contents_rect.x(), top, contents_rect.width(),
@@ -223,7 +223,7 @@ void OmniboxPopupContentsView::UpdatePopupAppearance() {
}
}
- for (size_t i = result_size; i < AutocompleteResult::kMaxMatches; ++i)
+ for (size_t i = result_size; i < AutocompleteResult::GetMaxMatches(); ++i)
child_at(i)->SetVisible(false);
// We want the popup to appear to overlay the bottom of the toolbar. So we
« no previous file with comments | « chrome/browser/flag_descriptions.cc ('k') | components/omnibox/browser/autocomplete_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698