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

Unified Diff: chrome/renderer/render_thread.cc

Issue 3064017: Add --enable-speech-input switch and set ENABLE_INPUT_SPEECH=1 (Closed)
Patch Set: Added button images to test shell and set flag. Created 10 years, 5 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
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/test/data/speech/enable_speech_input_switch_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_thread.cc
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index e1da1a82c75e7dc4cace22c08f350a4058e0e944..6ad92d2d23131ae751b2ceea9ec301370d41d936 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() {
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/test/data/speech/enable_speech_input_switch_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698