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

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

Issue 609493002: Propagate the search request params from the browser to the Instant search base page to fix the embe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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 c6edfdd266aeb902819f4d7436afa11be599e21c..c0be4f5ff3c214984b410a42321fdae93d08983f 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -78,13 +78,14 @@ InstantController::InstantController(BrowserInstantController* browser)
InstantController::~InstantController() {
}
-bool InstantController::SubmitQuery(const base::string16& search_terms) {
+bool InstantController::SubmitQuery(const base::string16& search_terms,
+ const EmbeddedSearchRequestParams& params) {
if (instant_tab_ && instant_tab_->supports_instant() &&
search_mode_.is_origin_search()) {
// Use |instant_tab_| to run the query if we're already on a search results
// page. (NOTE: in particular, we do not send the query to NTPs.)
SearchTabHelper::FromWebContents(instant_tab_->web_contents())->Submit(
- search_terms);
+ search_terms, params);
instant_tab_->web_contents()->Focus();
EnsureSearchTermsAreSet(instant_tab_->web_contents(), search_terms);
return true;
« no previous file with comments | « chrome/browser/ui/search/instant_controller.h ('k') | chrome/browser/ui/search/instant_search_prerenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698