Chromium Code Reviews| 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 b296a99e318518db2ed1948d210a5fd55c176883..edd169d1a45dc58b8c0e71f81bfd4ca11cacac12 100644 |
| --- a/content/browser/speech/input_tag_speech_dispatcher_host.cc |
| +++ b/content/browser/speech/input_tag_speech_dispatcher_host.cc |
| @@ -16,6 +16,10 @@ using content::SpeechRecognitionManager; |
| using content::SpeechRecognitionSessionConfig; |
| using content::SpeechRecognitionSessionContext; |
| +namespace { |
| + const uint32 kMaxHypothesesForSpeechInputTag = 6; |
|
hans
2012/06/27 09:53:10
no need to indent here
Primiano Tucci (use gerrit)
2012/06/27 10:01:26
Done.
|
| +} |
| + |
| namespace speech { |
| SpeechRecognitionManager* InputTagSpeechDispatcherHost::manager_for_tests_; |
| @@ -77,6 +81,7 @@ void InputTagSpeechDispatcherHost::OnStartRecognition( |
| config.grammars.push_back( |
| content::SpeechRecognitionGrammar(params.grammar)); |
| } |
| + config.max_hypotheses = kMaxHypothesesForSpeechInputTag; |
| config.origin_url = params.origin_url; |
| config.initial_context = context; |
| config.url_request_context_getter = url_request_context_getter_.get(); |