| Index: chrome/renderer/speech_input_dispatcher.cc
|
| diff --git a/chrome/renderer/speech_input_dispatcher.cc b/chrome/renderer/speech_input_dispatcher.cc
|
| index eaab3b7bd8d34d11fc2091e580a1bc49a0497958..d11962178b54623c21f712b1d67c891df2579a1d 100644
|
| --- a/chrome/renderer/speech_input_dispatcher.cc
|
| +++ b/chrome/renderer/speech_input_dispatcher.cc
|
| @@ -39,19 +39,13 @@ bool SpeechInputDispatcher::startRecognition(
|
| const WebKit::WebRect& element_rect,
|
| const WebKit::WebString& language,
|
| const WebKit::WebString& grammar) {
|
| - return startRecognition(request_id, element_rect, grammar);
|
| -}
|
| -
|
| -bool SpeechInputDispatcher::startRecognition(
|
| - int request_id,
|
| - const WebKit::WebRect& element_rect,
|
| - const WebKit::WebString& grammar) {
|
| VLOG(1) << "SpeechInputDispatcher::startRecognition enter";
|
| gfx::Size scroll = render_view_->webview()->mainFrame()->scrollOffset();
|
| gfx::Rect rect = element_rect;
|
| rect.Offset(-scroll.width(), -scroll.height());
|
| render_view_->Send(new ViewHostMsg_SpeechInput_StartRecognition(
|
| - render_view_->routing_id(), request_id, rect, UTF16ToUTF8(grammar)));
|
| + render_view_->routing_id(), request_id, rect,
|
| + UTF16ToUTF8(language), UTF16ToUTF8(grammar)));
|
| VLOG(1) << "SpeechInputDispatcher::startRecognition exit";
|
| return true;
|
| }
|
|
|