Commit 0cc3e802 authored by hans@chromium.org's avatar hans@chromium.org

Web Speech API: Don't expose the API on Android

The API is not implemented on Android yet.

BUG=170079
TBR=jamesr

Review URL: https://chromiumcodereview.appspot.com/11970005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177134 0039d316-1c4b-4281-b951-d872f2087c98
parent f3ef24cc
...@@ -692,7 +692,12 @@ void RenderThreadImpl::EnsureWebKitInitialized() { ...@@ -692,7 +692,12 @@ void RenderThreadImpl::EnsureWebKitInitialized() {
WebRuntimeFeatures::enableSpeechInput( WebRuntimeFeatures::enableSpeechInput(
!command_line.HasSwitch(switches::kDisableSpeechInput)); !command_line.HasSwitch(switches::kDisableSpeechInput));
#if defined(OS_ANDROID)
// Web Speech API Speech recognition is not implemented on Android yet.
WebRuntimeFeatures::enableScriptedSpeech(false);
#else
WebRuntimeFeatures::enableScriptedSpeech(true); WebRuntimeFeatures::enableScriptedSpeech(true);
#endif
WebRuntimeFeatures::enableFileSystem( WebRuntimeFeatures::enableFileSystem(
!command_line.HasSwitch(switches::kDisableFileSystem)); !command_line.HasSwitch(switches::kDisableFileSystem));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment