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

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

Issue 16286010: Removed the IsRecordingInProcess check for speech since it is not needed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: content/browser/speech/speech_recognizer_impl.cc
diff --git a/content/browser/speech/speech_recognizer_impl.cc b/content/browser/speech/speech_recognizer_impl.cc
index 92164780621474e76dcf1816b01804493823bef7..65ec1fbb74ca4ac6e69911a282e8a527a75cada9 100644
--- a/content/browser/speech/speech_recognizer_impl.cc
+++ b/content/browser/speech/speech_recognizer_impl.cc
@@ -403,11 +403,6 @@ SpeechRecognizerImpl::StartRecording(const FSMEventArgs&) {
SPEECH_AUDIO_ERROR_DETAILS_NO_MIC));
}
- if (audio_manager->IsRecordingInProcess()) {
- return Abort(SpeechRecognitionError(SPEECH_RECOGNITION_ERROR_AUDIO,
- SPEECH_AUDIO_ERROR_DETAILS_IN_USE));
Primiano Tucci (use gerrit) 2013/06/04 16:09:03 IIRC, this is the only point in which SPEECH_AUDIO
no longer working on chromium 2013/06/05 09:30:11 Done.
- }
-
const int samples_per_packet = (kAudioSampleRate *
recognition_engine_->GetDesiredAudioChunkDurationMs()) / 1000;
AudioParameters params(AudioParameters::AUDIO_PCM_LINEAR, kChannelLayout,

Powered by Google App Engine
This is Rietveld 408576698