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

Unified Diff: chrome/browser/ui/browser_commands.cc

Issue 260903010: Start removing support for the experimental x-webkit-speech API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't touch histograms.xml Created 6 years, 8 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/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();

Powered by Google App Engine
This is Rietveld 408576698