summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/history_url_provider.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-18 01:13:41 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-18 01:13:41 +0000
commit0be9b61912c94843c1cba2f51ddae5acd50370a7 (patch)
tree48c04d442b281b2ff0e73f1f4a2ef995cbd849fe /chrome/browser/autocomplete/history_url_provider.cc
parent3e50576e9fb97b64f2971171b8b96e62296eb23b (diff)
downloadchromium_src-0be9b61912c94843c1cba2f51ddae5acd50370a7.zip
chromium_src-0be9b61912c94843c1cba2f51ddae5acd50370a7.tar.gz
chromium_src-0be9b61912c94843c1cba2f51ddae5acd50370a7.tar.bz2
Remove --omnibox-popup-count flag.
BUG=40083 TEST=compiles Review URL: http://codereview.chromium.org/2013008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47482 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/history_url_provider.cc')
-rw-r--r--chrome/browser/autocomplete/history_url_provider.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/autocomplete/history_url_provider.cc b/chrome/browser/autocomplete/history_url_provider.cc
index a748700..8880a12 100644
--- a/chrome/browser/autocomplete/history_url_provider.cc
+++ b/chrome/browser/autocomplete/history_url_provider.cc
@@ -152,14 +152,14 @@ void HistoryURLProvider::DoAutocomplete(history::HistoryBackend* backend,
++i) {
if (params->cancel)
return; // Canceled in the middle of a query, give up.
- // We only need max_matches results in the end, but before we get there we
+ // We only need kMaxMatches results in the end, but before we get there we
// need to promote lower-quality matches that are prefixes of
// higher-quality matches, and remove lower-quality redirects. So we ask
// for more results than we need, of every prefix type, in hopes this will
// give us far more than enough to work with. CullRedirects() will then
- // reduce the list to the best max_matches results.
+ // reduce the list to the best kMaxMatches results.
db->AutocompleteForPrefix(i->prefix + params->input.text(),
- max_matches() * 2, &url_matches);
+ kMaxMatches * 2, &url_matches);
for (URLRowVector::const_iterator j(url_matches.begin());
j != url_matches.end(); ++j) {
const Prefix* best_prefix = BestPrefix(j->url(), std::wstring());
@@ -205,9 +205,9 @@ void HistoryURLProvider::DoAutocomplete(history::HistoryBackend* backend,
return;
// Remove redirects and trim list to size. We want to provide up to
- // max_matches results plus the What You Typed result, if it was added to
+ // kMaxMatches results plus the What You Typed result, if it was added to
// |history_matches| above.
- CullRedirects(backend, &history_matches, max_matches() + exact_suggestion);
+ CullRedirects(backend, &history_matches, kMaxMatches + exact_suggestion);
// Convert the history matches to autocomplete matches.
for (size_t i = first_match; i < history_matches.size(); ++i) {