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

Unified Diff: webkit/tools/test_shell/test_shell.cc

Issue 8222025: Allow speech input feature to be disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Enable speech input by default (common.gypi) Created 9 years, 2 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: webkit/tools/test_shell/test_shell.cc
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc
index 01862c531d2ce30208c6985ed9b2f71c575ef1c3..c3cd19fb07c937c369b3d9be7e18f3fb1469ea47 100644
--- a/webkit/tools/test_shell/test_shell.cc
+++ b/webkit/tools/test_shell/test_shell.cc
@@ -605,10 +605,14 @@ TestShell::device_orientation_client_mock() {
WebKit::WebSpeechInputControllerMock*
TestShell::CreateSpeechInputControllerMock(
WebKit::WebSpeechInputListener* listener) {
+#if ENABLE_INPUT_SPEECH
jam 2011/10/12 03:08:07 nit: around 10 and 11
DCHECK(!speech_input_controller_mock_.get());
speech_input_controller_mock_.reset(
WebKit::WebSpeechInputControllerMock::create(listener));
return speech_input_controller_mock_.get();
+#else
+ return NULL;
+#endif
}
WebKit::WebSpeechInputControllerMock*
« content/renderer/render_view_impl.cc ('K') | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698