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

Unified Diff: Source/modules/speech/SpeechRecognitionResultList.cpp

Issue 884973003: Extend PlatformSpeechSynthesizerMock with an utterance queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: minor test tidying Created 5 years, 11 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
« no previous file with comments | « Source/modules/speech/SpeechRecognitionResult.cpp ('k') | Source/modules/speech/SpeechSynthesis.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/speech/SpeechRecognitionResultList.cpp
diff --git a/Source/modules/speech/SpeechRecognitionResultList.cpp b/Source/modules/speech/SpeechRecognitionResultList.cpp
index 03c8990cde02dcd078e377d27de1e8ce10458f88..0e4eecbbc7a1ed25ba732e1749d7213c41521216 100644
--- a/Source/modules/speech/SpeechRecognitionResultList.cpp
+++ b/Source/modules/speech/SpeechRecognitionResultList.cpp
@@ -37,9 +37,9 @@ SpeechRecognitionResultList* SpeechRecognitionResultList::create(const HeapVecto
SpeechRecognitionResult* SpeechRecognitionResultList::item(unsigned index)
{
if (index >= m_results.size())
- return 0;
+ return nullptr;
- return m_results[index].get();
+ return m_results[index];
}
SpeechRecognitionResultList::SpeechRecognitionResultList(const HeapVector<Member<SpeechRecognitionResult>>& results)
« no previous file with comments | « Source/modules/speech/SpeechRecognitionResult.cpp ('k') | Source/modules/speech/SpeechSynthesis.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698