Chromium Code Reviews| Index: content/browser/speech/speech_recognition_dispatcher_host.cc |
| diff --git a/content/browser/speech/speech_recognition_dispatcher_host.cc b/content/browser/speech/speech_recognition_dispatcher_host.cc |
| index 3044cff13c5853a48667dda2b8257095a3cfcd5e..08ac1fb0474deef4d4fd94c4f0526bed0637b76a 100644 |
| --- a/content/browser/speech/speech_recognition_dispatcher_host.cc |
| +++ b/content/browser/speech/speech_recognition_dispatcher_host.cc |
| @@ -7,12 +7,14 @@ |
| #include "base/bind.h" |
| #include "base/command_line.h" |
| #include "base/lazy_instance.h" |
| +#include "base/utf_string_conversions.h" |
|
hans
2012/06/11 15:52:15
i can't see where this is used..
Primiano Tucci (use gerrit)
2012/06/11 17:03:22
Right, it was part some experiments later aborted.
|
| #include "content/common/speech_recognition_messages.h" |
| #include "content/public/browser/speech_recognition_manager.h" |
| #include "content/public/browser/speech_recognition_preferences.h" |
| #include "content/public/browser/speech_recognition_session_config.h" |
| #include "content/public/browser/speech_recognition_session_context.h" |
| #include "content/public/common/content_switches.h" |
| +#include "googleurl/src/gurl.h" |
| using content::SpeechRecognitionManager; |
| using content::SpeechRecognitionSessionConfig; |
| @@ -73,9 +75,11 @@ void SpeechRecognitionDispatcherHost::OnStartRequest( |
| const SpeechRecognitionHostMsg_StartRequest_Params& params) { |
| SpeechRecognitionSessionContext context; |
| + context.context_name = GURL(params.origin_url).spec(); |
| context.render_process_id = render_process_id_; |
| context.render_view_id = params.render_view_id; |
| context.request_id = params.request_id; |
| + context.requested_by_page_element = false; |
| SpeechRecognitionSessionConfig config; |
| config.is_one_shot = params.is_one_shot; |