From 7dbba441b19c46cdbfb846aebf3927b6717354b0 Mon Sep 17 00:00:00 2001 From: "benm@chromium.org" Date: Mon, 30 Jun 2014 21:28:41 +0000 Subject: Disable speech synthesis API for content/ layer. The Speech Synthesis API relies on an implementation in chrome/ yet is a stable Web Platform feature so enabled in the content/ layer. Flip the enable flag to a disable flag, and set it for non-chrome content/ embedders. BUG=347045 Review URL: https://codereview.chromium.org/355183002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280667 0039d316-1c4b-4281-b951-d872f2087c98 --- android_webview/lib/main/aw_main_delegate.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'android_webview') diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc index 5f1069f..84b37ae 100644 --- a/android_webview/lib/main/aw_main_delegate.cc +++ b/android_webview/lib/main/aw_main_delegate.cc @@ -75,6 +75,10 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) { // WebRTC hardware decoding is not supported, internal bug 15075307 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); + + // Speech Synthesis backend resides in the chrome layer, not used by WebView. + // http://crbug.com/347045 tracks moving the backend to the content layer. + cl->AppendSwitch(switches::kDisableSpeechSynthesis); return false; } -- cgit v1.1