summaryrefslogtreecommitdiffstats
path: root/chrome/browser/instant
diff options
context:
space:
mode:
authorsreeram@chromium.org <sreeram@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-09 15:33:19 +0000
committersreeram@chromium.org <sreeram@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-09 15:33:19 +0000
commit741fabee4b5d9eab0ebfa6db5218ac0b9da46ad1 (patch)
tree28147ddf051a3b2ff3118622503dc13be7ab034d /chrome/browser/instant
parent6218e32dc14fe8b500912a72d18c3c9bac8265bb (diff)
downloadchromium_src-741fabee4b5d9eab0ebfa6db5218ac0b9da46ad1.zip
chromium_src-741fabee4b5d9eab0ebfa6db5218ac0b9da46ad1.tar.gz
chromium_src-741fabee4b5d9eab0ebfa6db5218ac0b9da46ad1.tar.bz2
Allow site-search to work with --restrict-instant-to-search.
With --restrict-instant-to-search (and Instant turned on, of course), type [google] into the omnibox, and select "Search Google for ..." from the drop down. Continue typing. Without this patch, no preview results appear. With this patch, preview results appear. I.e., there's at least one SEARCH_OTHER_ENGINE that provides Instant functionality, viz., Google, so it should be a part of the accepted autocomplete match types for the "search only" mode. BUG=none TEST=Tested the scenario in the description. Review URL: http://codereview.chromium.org/6960004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84621 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/instant')
-rw-r--r--chrome/browser/instant/instant_controller.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc
index d063092..8f65660 100644
--- a/chrome/browser/instant/instant_controller.cc
+++ b/chrome/browser/instant/instant_controller.cc
@@ -657,7 +657,8 @@ bool InstantController::ShouldShowPreviewFor(const AutocompleteMatch& match,
if (cl->HasSwitch(switches::kRestrictInstantToSearch) &&
match.type != AutocompleteMatch::SEARCH_WHAT_YOU_TYPED &&
match.type != AutocompleteMatch::SEARCH_HISTORY &&
- match.type != AutocompleteMatch::SEARCH_SUGGEST) {
+ match.type != AutocompleteMatch::SEARCH_SUGGEST &&
+ match.type != AutocompleteMatch::SEARCH_OTHER_ENGINE) {
return false;
}