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

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

Issue 338633003: Prerender Instant search base url on omnibox focus event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update to handle corner case 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
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 31205c495a8898acc70c723ef2d5f6ba05e16862..9905e09b43e3d0827074419f9e75e1b8bbd6b232 100644
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
@@ -368,7 +368,7 @@ void OmniboxEditModel::OnChanged() {
if (user_input_in_progress_) {
InstantSearchPrerenderer* prerenderer =
InstantSearchPrerenderer::GetForProfile(profile_);
- if (prerenderer &&
+ if (prerenderer && !chrome::ShouldPrerenderInstantUrlOnOmniboxFocus() &&
kmadhusu 2014/06/18 16:23:50 We should not add this check here. Consider the fo
sidharthms 2014/06/19 20:36:52 Done.
prerenderer->IsAllowed(current_match, controller_->GetWebContents()) &&
popup_model()->IsOpen() && has_focus()) {
recommended_action = AutocompleteActionPredictor::ACTION_PRERENDER;
« no previous file with comments | « no previous file | chrome/browser/ui/search/search_tab_helper.cc » ('j') | chrome/browser/ui/search/search_tab_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698