Index: chrome/browser/ui/search/instant_search_prerenderer.cc |
diff --git a/chrome/browser/ui/search/instant_search_prerenderer.cc b/chrome/browser/ui/search/instant_search_prerenderer.cc |
index 4fd25a2fcf8f811e3d76276e867f39c405371282..9aa3ffd1bd96d1f88773155aae4493334a92fc05 100644 |
--- a/chrome/browser/ui/search/instant_search_prerenderer.cc |
+++ b/chrome/browser/ui/search/instant_search_prerenderer.cc |
@@ -22,12 +22,6 @@ |
namespace { |
-// Returns true if the underlying page supports Instant search. |
-bool PageSupportsInstantSearch(content::WebContents* contents) { |
- // Search results page supports Instant search. |
- return SearchTabHelper::FromWebContents(contents)->IsSearchResultsPage(); |
-} |
- |
// Returns true if |match| is associated with the default search provider. |
bool MatchIsFromDefaultSearchProvider(const AutocompleteMatch& match, |
Profile* profile) { |
@@ -126,9 +120,7 @@ bool InstantSearchPrerenderer::CanCommitQuery( |
return false; |
} |
- // InstantSearchPrerenderer can commit query to the prerendered page only if |
- // the underlying |source| page doesn't support Instant search. |
- return !PageSupportsInstantSearch(source); |
+ return true; |
} |
bool InstantSearchPrerenderer::UsePrerenderedPage( |
@@ -184,8 +176,7 @@ bool InstantSearchPrerenderer::IsAllowed(const AutocompleteMatch& match, |
// This handles the by-far-the-most-common cases while still being simple and |
// maintainable. |
return source && AutocompleteMatch::IsSearchType(match.type) && |
- MatchIsFromDefaultSearchProvider(match, profile_) && |
- !PageSupportsInstantSearch(source); |
+ MatchIsFromDefaultSearchProvider(match, profile_); |
} |
content::WebContents* InstantSearchPrerenderer::prerender_contents() const { |