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

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

Issue 1428423002: Remove setVoiceSearchSupported part of EmbeddedSearch SearchBox API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/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 72598b24e363ebc75b62b4870f63050fb80fafbb..e10a41aaa2d5e786dfe95191e2924e8e8ce0df04 100644
--- a/chrome/browser/ui/search/search_ipc_router.cc
+++ b/chrome/browser/ui/search/search_ipc_router.cc
@@ -173,8 +173,6 @@ bool SearchIPCRouter::OnMessageReceived(const IPC::Message& message) {
IPC_BEGIN_MESSAGE_MAP(SearchIPCRouter, message)
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_InstantSupportDetermined,
OnInstantSupportDetermined)
- IPC_MESSAGE_HANDLER(ChromeViewHostMsg_SetVoiceSearchSupported,
- OnVoiceSearchSupportDetermined)
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_FocusOmnibox, OnFocusOmnibox);
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_SearchBoxNavigate,
OnSearchBoxNavigate);
@@ -208,19 +206,6 @@ void SearchIPCRouter::OnInstantSupportDetermined(int page_seq_no,
delegate_->OnInstantSupportDetermined(instant_support);
}
-void SearchIPCRouter::OnVoiceSearchSupportDetermined(
- int page_seq_no,
- bool supports_voice_search) const {
- if (page_seq_no != commit_counter_)
- return;
-
- delegate_->OnInstantSupportDetermined(true);
- if (!policy_->ShouldProcessSetVoiceSearchSupport())
- return;
-
- delegate_->OnSetVoiceSearchSupport(supports_voice_search);
-}
-
void SearchIPCRouter::OnFocusOmnibox(int page_seq_no,
OmniboxFocusState state) const {
if (page_seq_no != commit_counter_)

Powered by Google App Engine
This is Rietveld 408576698