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

Unified Diff: Source/modules/speech/SpeechGrammarList.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/DOMWindowSpeechSynthesis.cpp ('k') | Source/modules/speech/SpeechRecognition.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/speech/SpeechGrammarList.cpp
diff --git a/Source/modules/speech/SpeechGrammarList.cpp b/Source/modules/speech/SpeechGrammarList.cpp
index 4eeefa7e3fbafb06cacb74bb01d1b5d3dc0143e9..861b534835ab3f7d5950c73d8148fe38ec0affa6 100644
--- a/Source/modules/speech/SpeechGrammarList.cpp
+++ b/Source/modules/speech/SpeechGrammarList.cpp
@@ -39,9 +39,9 @@ SpeechGrammarList* SpeechGrammarList::create()
SpeechGrammar* SpeechGrammarList::item(unsigned index) const
{
if (index >= m_grammars.size())
- return 0;
+ return nullptr;
- return m_grammars[index].get();
+ return m_grammars[index];
}
void SpeechGrammarList::addFromUri(ExecutionContext* executionContext, const String& src, double weight)
« no previous file with comments | « Source/modules/speech/DOMWindowSpeechSynthesis.cpp ('k') | Source/modules/speech/SpeechRecognition.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698