Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1001)

Unified Diff: chrome/browser/ui/omnibox/chrome_omnibox_client.cc

Issue 2143953002: Remove search::ShouldPrefetchSearchResultsOnSRP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698