summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/history_url_provider.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-04 14:19:37 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-04 14:19:37 +0000
commitea3b9a5037ff9bb3b927a4d57cdfaab835e636db (patch)
treee92390617210619762c398db1a66e32762ac86b4 /chrome/browser/autocomplete/history_url_provider.cc
parent7a4557d5ebc81fb3c99ae511d5a64b8543ec8b2f (diff)
downloadchromium_src-ea3b9a5037ff9bb3b927a4d57cdfaab835e636db.zip
chromium_src-ea3b9a5037ff9bb3b927a4d57cdfaab835e636db.tar.gz
chromium_src-ea3b9a5037ff9bb3b927a4d57cdfaab835e636db.tar.bz2
Makes the search provider not return results that look like URLs.
BUG=77065 TEST=see bug, also covered by unit test R=pkasting@chromium.org Review URL: http://codereview.chromium.org/6711087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80308 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/history_url_provider.cc')
-rw-r--r--chrome/browser/autocomplete/history_url_provider.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/history_url_provider.cc b/chrome/browser/autocomplete/history_url_provider.cc
index 65a60f5..545f98a 100644
--- a/chrome/browser/autocomplete/history_url_provider.cc
+++ b/chrome/browser/autocomplete/history_url_provider.cc
@@ -631,7 +631,7 @@ void HistoryURLProvider::RunAutocompletePasses(
// Pass 2: Ask the history service to call us back on the history thread,
// where we can read the full on-disk DB.
- if (!input.synchronous_only()) {
+ if (input.matches_requested() == AutocompleteInput::ALL_MATCHES) {
done_ = false;
params_ = params.release(); // This object will be destroyed in
// QueryComplete() once we're done with it.