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

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

Issue 2149973002: Remove embeddedSearch.searchBox.displayInstantResults (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@searchbox_applauncher
Patch Set: rebase Created 4 years, 5 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/search_ipc_router.cc
diff --git a/chrome/browser/ui/search/search_ipc_router.cc b/chrome/browser/ui/search/search_ipc_router.cc
index 59fc1988986601d95e6c568d6028e9fb76939ca7..a67927b0f96691892a8f9747a1adae6ea83b07db 100644
--- a/chrome/browser/ui/search/search_ipc_router.cc
+++ b/chrome/browser/ui/search/search_ipc_router.cc
@@ -54,18 +54,6 @@ void SearchIPCRouter::SendHistorySyncCheckResult(bool sync_history) {
Send(new ChromeViewMsg_HistorySyncCheckResult(routing_id(), sync_history));
}
-void SearchIPCRouter::SetDisplayInstantResults() {
- if (!policy_->ShouldSendSetDisplayInstantResults())
- return;
-
- bool is_search_results_page = !search::GetSearchTerms(web_contents()).empty();
- bool display_instant_results =
- is_search_results_page ? search::ShouldPrefetchSearchResultsOnSRP()
- : search::ShouldPrefetchSearchResults();
- Send(new ChromeViewMsg_SearchBoxSetDisplayInstantResults(
- routing_id(), display_instant_results));
-}
-
void SearchIPCRouter::SetSuggestionToPrefetch(
const InstantSuggestion& suggestion) {
if (!policy_->ShouldSendSetSuggestionToPrefetch())
« no previous file with comments | « chrome/browser/ui/search/search_ipc_router.h ('k') | chrome/browser/ui/search/search_ipc_router_policy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698