summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorsatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 00:05:23 +0000
committersatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 00:05:23 +0000
commit8314cc5be9d5237e22f953ce1f42fb05903af6a8 (patch)
treeb0e32fe9b97b059c7076d05a8f64dee9df3372e7 /chrome/renderer
parentd244de1a81fcdc87d3abae1e140d156ba31f907c (diff)
downloadchromium_src-8314cc5be9d5237e22f953ce1f42fb05903af6a8.zip
chromium_src-8314cc5be9d5237e22f953ce1f42fb05903af6a8.tar.gz
chromium_src-8314cc5be9d5237e22f953ce1f42fb05903af6a8.tar.bz2
Add --enable-speech-input switch and set ENABLE_INPUT_SPEECH=1
Flip the compile-time enable switch for speech input to on and add a command-line switch to put the functionality behind. The command-line flag will be used both on the Chromium side and in WebKit via WebRuntimeFeatures. This CL depends on the webkit patch https://bugs.webkit.org/show_bug.cgi?id=43146 BUG=none TEST=browser_tests --gtest_filter=SpeechInputEnableSwitchTest.* Review URL: http://codereview.chromium.org/3064017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54235 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_thread.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index 03e468a..060ff77 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -912,6 +912,9 @@ void RenderThread::EnsureWebKitInitialized() {
WebRuntimeFeatures::enableDeviceOrientation(
command_line.HasSwitch(switches::kEnableDeviceOrientation));
+
+ WebRuntimeFeatures::enableSpeechInput(
+ command_line.HasSwitch(switches::kEnableSpeechInput));
}
void RenderThread::IdleHandler() {