Index: chrome/browser/ui/browser_commands.cc |
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc |
index c040b2848f7a2a9944613acc0ca590ac29535de6..a54dcd36a323b2fb44549175f2ca48b413c61ca3 100644 |
--- a/chrome/browser/ui/browser_commands.cc |
+++ b/chrome/browser/ui/browser_commands.cc |
@@ -1060,12 +1060,9 @@ void OpenUpdateChromeDialog(Browser* browser) { |
} |
void ToggleSpeechInput(Browser* browser) { |
- WebContents* web_contents = |
- browser->tab_strip_model()->GetActiveWebContents(); |
- web_contents->GetRenderViewHost()->ToggleSpeechInput(); |
- |
SearchTabHelper* search_tab_helper = |
- SearchTabHelper::FromWebContents(web_contents); |
+ SearchTabHelper::FromWebContents( |
+ browser->tab_strip_model()->GetActiveWebContents()); |
// |search_tab_helper| can be null in unit tests. |
if (search_tab_helper) |
search_tab_helper->ToggleVoiceSearch(); |