| Index: content/browser/speech/input_tag_speech_dispatcher_host.cc
|
| diff --git a/content/browser/speech/input_tag_speech_dispatcher_host.cc b/content/browser/speech/input_tag_speech_dispatcher_host.cc
|
| index cf6459713ee0129cbeea55fa0d3e1c171482a09a..1251eea57a147c4634f7a97d81d45cf8726126b7 100644
|
| --- a/content/browser/speech/input_tag_speech_dispatcher_host.cc
|
| +++ b/content/browser/speech/input_tag_speech_dispatcher_host.cc
|
| @@ -89,7 +89,7 @@ bool InputTagSpeechDispatcherHost::OnMessageReceived(
|
| }
|
|
|
| void InputTagSpeechDispatcherHost::OnStartRecognition(
|
| - const InputTagSpeechHostMsg_StartRecognition_Params ¶ms) {
|
| + const InputTagSpeechHostMsg_StartRecognition_Params& params) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
|
|
| SpeechRecognitionSessionContext context;
|
| @@ -110,10 +110,8 @@ void InputTagSpeechDispatcherHost::OnStartRecognition(
|
| config.filter_profanities = recognition_preferences_->FilterProfanities();
|
|
|
| int session_id = manager()->CreateSession(config, this);
|
| - if (session_id == content::SpeechRecognitionManager::kSessionIDInvalid)
|
| - return;
|
| -
|
| - manager()->StartSession(session_id);
|
| + DCHECK_NE(session_id, content::SpeechRecognitionManager::kSessionIDInvalid);
|
| + manager()->StartSession(session_id);
|
| }
|
|
|
| void InputTagSpeechDispatcherHost::OnCancelRecognition(int render_view_id,
|
|
|