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

Unified Diff: content/renderer/render_view_impl.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: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index e6bf678a5ff0f3960db5a5a77725b918ea215500..4721ec80987d286d27ca5d80c9fc130132d62141 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -4382,9 +4382,13 @@ WebKit::WebGeolocationClient* RenderViewImpl::geolocationClient() {
WebKit::WebSpeechInputController* RenderViewImpl::speechInputController(
WebKit::WebSpeechInputListener* listener) {
+#if defined(ENABLE_INPUT_SPEECH)
jam 2011/10/12 03:08:07 i would even wrap this around 86 and 87 only :)
if (!speech_input_dispatcher_)
speech_input_dispatcher_ = new SpeechInputDispatcher(this, listener);
return speech_input_dispatcher_;
+#else
+ return NULL;
+#endif
}
WebKit::WebDeviceOrientationClient* RenderViewImpl::deviceOrientationClient() {

Powered by Google App Engine
This is Rietveld 408576698