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

Unified Diff: chrome/browser/ui/search/instant_controller.cc

Issue 12895007: Send onsubmit query down to the instant extended overlay page when a navigation is performed from t… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/search/instant_controller.cc
diff --git a/chrome/browser/ui/search/instant_controller.cc b/chrome/browser/ui/search/instant_controller.cc
index 1d6471ffd2baef8dfcea4dc3beaf8a24d3a5f14c..4f617f059fee936b5d1783c5d77735dc95a20842 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -610,6 +610,14 @@ void InstantController::OnCancel(const AutocompleteMatch& match,
overlay_->CancelSelection(full_text);
}
+void InstantController::OmniboxNavigateToURL() {
+ if (!extended_enabled_)
+ return;
+
+ if (instant_tab_)
+ instant_tab_->Submit(string16());
+}
+
content::WebContents* InstantController::GetOverlayContents() const {
return overlay_ ? overlay_->contents() : NULL;
}

Powered by Google App Engine
This is Rietveld 408576698