Chromium Code Reviews| 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; |