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

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: 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
Index: chrome/browser/autocomplete/autocomplete_edit.cc
diff --git a/chrome/browser/autocomplete/autocomplete_edit.cc b/chrome/browser/autocomplete/autocomplete_edit.cc
index ce388ac2e282a19db8203ef26bc598876ff13848..38549966b2e740804288f6872759f0030e970a3d 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(

Powered by Google App Engine
This is Rietveld 408576698