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* |