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

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

Issue 330123003: Set up a field trial flag to prerender Instant search base url on omnibox focus event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
« chrome/browser/search/search.cc ('K') | « chrome/browser/search/search.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/omnibox/omnibox_edit_model.cc
diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.cc b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
index 60bb805edf94296d762b2a98e8ed500ea1506854..5dbba78dc191504273090d90042d6f459014d12b 100644
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
@@ -944,6 +944,10 @@ void OmniboxEditModel::OnSetFocus(bool control_down) {
permanent_text_, base::string16::npos, base::string16(),
delegate_->GetURL(), ClassifyPage(), false, false, true, true));
}
+ // Prerender instant search base page.
+ if (chrome::ShouldPrerenderInstantSearchBaseOnFocus() &&
+ InstantSearchPrerenderer::GetForProfile(profile_))
+ delegate_->DoPrerender(AutocompleteMatch());
kmadhusu 2014/06/12 21:12:38 We should not pass an new AutocompleteMatch() here
sidharthms 2014/06/12 23:33:34 Moved to separate cl
if (user_input_in_progress_ || !in_revert_)
delegate_->OnInputStateChanged();
« chrome/browser/search/search.cc ('K') | « chrome/browser/search/search.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698