Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: content/browser/speech/speech_recognition_browsertest.cc

Issue 10233010: Introducing new data types and IPC messages for scripted JS speech recognition APIs (Speech CL2.0) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added CONTENT_EXPORT to SpeechRecognitionEngine::Config Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/speech/speech_recognition_browsertest.cc
diff --git a/content/browser/speech/speech_recognition_browsertest.cc b/content/browser/speech/speech_recognition_browsertest.cc
index e1bd7b6250c3209b1526ac5cfb9e043d2f21ef2b..ce9c4a63916996bd6d43bc4d0f5d905f554f42a7 100644
--- a/content/browser/speech/speech_recognition_browsertest.cc
+++ b/content/browser/speech/speech_recognition_browsertest.cc
@@ -75,7 +75,8 @@ class FakeSpeechRecognitionManager : public SpeechRecognitionManagerImpl {
EXPECT_EQ(0, session_id_);
EXPECT_EQ(NULL, listener_);
listener_ = event_listener;
- grammar_ = config.grammar;
+ if (config.grammars.size() > 0)
+ grammar_ = config.grammars[0].url;
session_ctx_ = config.initial_context;
session_id_ = 1;
return session_id_;
« no previous file with comments | « content/browser/speech/input_tag_speech_dispatcher_host.cc ('k') | content/browser/speech/speech_recognition_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698