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

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: Don't send url. Only send for current tab. 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..3e989a219d90a932494a06c5c297faf3f7b80151 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -610,6 +610,17 @@ void InstantController::OnCancel(const AutocompleteMatch& match,
overlay_->CancelSelection(full_text);
}
+void InstantController::OnNavigateToURL() {
+ if (!extended_enabled_)
+ return;
+
+ if (instant_tab_)
+ instant_tab_->Submit(L"");
sreeram 2013/04/01 16:22:01 Re-using the Submit() method causes a small proble
robertshield 2013/04/01 18:14:49 Ok, I prevented overwriting of the query_ field in
+
+ if (overlay_)
+ overlay_->Submit(L"");
sreeram 2013/04/01 16:22:01 Remove this. We shouldn't need to send any such in
robertshield 2013/04/01 18:14:49 Done.
+}
+
content::WebContents* InstantController::GetOverlayContents() const {
return overlay_ ? overlay_->contents() : NULL;
}

Powered by Google App Engine
This is Rietveld 408576698