diff options
Diffstat (limited to 'content/browser/speech/speech_recognition_browsertest.cc')
-rw-r--r-- | content/browser/speech/speech_recognition_browsertest.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/content/browser/speech/speech_recognition_browsertest.cc b/content/browser/speech/speech_recognition_browsertest.cc index f812ebf..a939fb6 100644 --- a/content/browser/speech/speech_recognition_browsertest.cc +++ b/content/browser/speech/speech_recognition_browsertest.cc @@ -130,12 +130,12 @@ class FakeSpeechRecognitionManager : public content::SpeechRecognitionManager { virtual string16 GetAudioInputDeviceModel() OVERRIDE { return string16(); } virtual void ShowAudioInputSettings() OVERRIDE {} - virtual int GetSession(int render_process_id, - int render_view_id, - int request_id) const OVERRIDE { - return session_ctx_.render_process_id == render_process_id && - session_ctx_.render_view_id == render_view_id && - session_ctx_.request_id == request_id; + virtual int LookupSessionByContext( + base::Callback<bool( + const content::SpeechRecognitionSessionContext&)> matcher) + const OVERRIDE { + bool matched = matcher.Run(session_ctx_); + return matched ? session_id_ : 0; } virtual const SpeechRecognitionSessionConfig& GetSessionConfig( |