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

Unified Diff: content/browser/speech/speech_recognition_manager_impl.cc

Issue 15907012: Implement SpeechRecognizerImplAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, nits Created 7 years, 6 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 | « content/browser/android/browser_jni_registrar.cc ('k') | content/browser/speech/speech_recognizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/speech/speech_recognition_manager_impl.cc
diff --git a/content/browser/speech/speech_recognition_manager_impl.cc b/content/browser/speech/speech_recognition_manager_impl.cc
index 03b663c82c601386110350aebcc72c8192cfa90e..ba7e8dc88f624f69af2dbe7d5d52b376eefd3ccd 100644
--- a/content/browser/speech/speech_recognition_manager_impl.cc
+++ b/content/browser/speech/speech_recognition_manager_impl.cc
@@ -23,6 +23,10 @@
#include "content/public/common/speech_recognition_result.h"
#include "media/audio/audio_manager.h"
+#if defined(OS_ANDROID)
+#include "content/browser/speech/speech_recognizer_impl_android.h"
+#endif
+
using base::Callback;
namespace content {
@@ -141,10 +145,7 @@ int SpeechRecognitionManagerImpl::CreateSession(
!config.continuous,
google_remote_engine);
#else
- // TODO(janx): Implement a SpeechRecognizerImplAndroid with a JNI interface
- // forwarding calls to Android's platform speech recognition service (see
- // crbug.com/222352).
- session->recognizer = NULL;
+ session->recognizer = new SpeechRecognizerImplAndroid(this, session_id);
#endif
return session_id;
}
« no previous file with comments | « content/browser/android/browser_jni_registrar.cc ('k') | content/browser/speech/speech_recognizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698