diff options
author | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-30 21:52:57 +0000 |
---|---|---|
committer | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-30 21:52:57 +0000 |
commit | c8647278668f33fc76900483ecf01ea9f34abde9 (patch) | |
tree | a97e798f531c11d39602ec2d539b37cfdd95539b /chrome/renderer | |
parent | 8822f38cd5d5006033003e5197a56bed2cc33fea (diff) | |
download | chromium_src-c8647278668f33fc76900483ecf01ea9f34abde9.zip chromium_src-c8647278668f33fc76900483ecf01ea9f34abde9.tar.gz chromium_src-c8647278668f33fc76900483ecf01ea9f34abde9.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.*
Originally Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54235, but reverted due to tests failure.
Review URL: http://codereview.chromium.org/3064017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54389 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/render_thread.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc index e1da1a8..6ad92d2 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() { |