| Index: chrome/renderer/speech_input_dispatcher.cc
|
| diff --git a/chrome/renderer/speech_input_dispatcher.cc b/chrome/renderer/speech_input_dispatcher.cc
|
| index 41b850a95544d126b99c488ec0e6bcd0e224c7fe..dc4e1ff5139c351cd5b6e2c2fde7352828226151 100644
|
| --- a/chrome/renderer/speech_input_dispatcher.cc
|
| +++ b/chrome/renderer/speech_input_dispatcher.cc
|
| @@ -66,9 +66,11 @@ void SpeechInputDispatcher::stopRecording(int request_id) {
|
| }
|
|
|
| void SpeechInputDispatcher::OnSpeechRecognitionResult(
|
| - int request_id, const string16& result) {
|
| + int request_id, const speech_input::SpeechInputResultArray& result) {
|
| VLOG(1) << "SpeechInputDispatcher::OnSpeechRecognitionResult enter";
|
| - WebKit::WebString webkit_result(result);
|
| + WebKit::WebSpeechInputResultArray webkit_result(result.size());
|
| + for (size_t i = 0; i < result.size(); ++i)
|
| + webkit_result[i].set(result[i].utterance, result[i].confidence);
|
| listener_->setRecognitionResult(request_id, webkit_result);
|
| VLOG(1) << "SpeechInputDispatcher::OnSpeechRecognitionResult exit";
|
| }
|
|
|