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

Unified Diff: chrome/browser/autocomplete/autocomplete_edit.cc

Issue 6990015: Preload Instant search when omnibox is focused. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebaseline Created 9 years, 7 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/instant/instant_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_edit.cc
diff --git a/chrome/browser/autocomplete/autocomplete_edit.cc b/chrome/browser/autocomplete/autocomplete_edit.cc
index 5d01e79f89d723d4e78687d0b435c7c1f626985f..0ac3f3d338e50dcbd2b123f1761e05f0ae4aaba2 100644
--- a/chrome/browser/autocomplete/autocomplete_edit.cc
+++ b/chrome/browser/autocomplete/autocomplete_edit.cc
@@ -585,6 +585,10 @@ void AutocompleteEditModel::OnSetFocus(bool control_down) {
NotificationService::current()->Notify(NotificationType::OMNIBOX_FOCUSED,
Source<AutocompleteEditModel>(this),
NotificationService::NoDetails());
+ InstantController* instant = controller_->GetInstant();
+ TabContentsWrapper* tab = controller_->GetTabContentsWrapper();
+ if (instant && tab)
+ instant->OnAutocompleteGotFocus(tab);
}
void AutocompleteEditModel::OnWillKillFocus(
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/instant/instant_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698