Chromium Code Reviews| Index: chrome/browser/ui/omnibox/chrome_omnibox_client.cc |
| diff --git a/chrome/browser/ui/omnibox/chrome_omnibox_client.cc b/chrome/browser/ui/omnibox/chrome_omnibox_client.cc |
| index e534939f83ca69a5497232d7daf75a1f035d7180..91d9bb206e82f56955bd953ddded2d31202ed79f 100644 |
| --- a/chrome/browser/ui/omnibox/chrome_omnibox_client.cc |
| +++ b/chrome/browser/ui/omnibox/chrome_omnibox_client.cc |
| @@ -458,13 +458,8 @@ void ChromeOmniboxClient::SetSuggestionToPrefetch( |
| const InstantSuggestion& suggestion) { |
| DCHECK(search::IsInstantExtendedAPIEnabled()); |
| content::WebContents* web_contents = controller_->GetWebContents(); |
| - if (web_contents && |
| - SearchTabHelper::FromWebContents(web_contents)->IsSearchResultsPage()) { |
| - if (search::ShouldPrefetchSearchResultsOnSRP()) { |
| - SearchTabHelper::FromWebContents(web_contents)-> |
| - SetSuggestionToPrefetch(suggestion); |
| - } |
| - } else { |
| + if (!web_contents || |
|
Marc Treib
2016/07/13 12:27:38
This looks weird, but it preserves the previous be
Jered
2016/07/19 14:03:27
I am confused about what happened to this code.
1)
Marc Treib
2016/07/19 15:51:18
Hah, I think I found it: The check used to be
"Sho
|
| + !SearchTabHelper::FromWebContents(web_contents)->IsSearchResultsPage()) { |
| InstantSearchPrerenderer* prerenderer = |
| InstantSearchPrerenderer::GetForProfile(profile_); |
| if (prerenderer) |