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

Unified Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 1127363004: Introduce "disable-speech-api" content flag and add it to WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename flag to "disable-speech", fix comments Created 5 years, 7 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: android_webview/lib/main/aw_main_delegate.cc
diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc
index 852081619f39e60952835d7157d8a053060609e0..bd6bcc5b2a0da4d447393079b93a929b8930b3de 100644
--- a/android_webview/lib/main/aw_main_delegate.cc
+++ b/android_webview/lib/main/aw_main_delegate.cc
@@ -90,6 +90,9 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) {
// WebView does not yet support screen orientation locking.
cl->AppendSwitch(switches::kDisableScreenOrientationLock);
+ // WebView does not currently support Web Speech API (crbug.com/483889)
+ cl->AppendSwitch(switches::kDisableSpeech);
+
// This is needed to be able to mmap the V8 snapshot and ICU data file
// directly from the WebView .apk.
// This needs to be here so that it gets to run before the code in
« no previous file with comments | « no previous file | content/browser/renderer_host/render_process_host_impl.cc » ('j') | content/public/common/content_switches.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698