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

Unified Diff: trunk/Source/modules/speech/SpeechSynthesis.cpp

Issue 185093002: Revert 168169 "Fix use-after-free of m_currentSpeechUtterance." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/modules/speech/SpeechSynthesis.cpp
===================================================================
--- trunk/Source/modules/speech/SpeechSynthesis.cpp (revision 168169)
+++ trunk/Source/modules/speech/SpeechSynthesis.cpp (working copy)
@@ -222,13 +222,6 @@
handleSpeakingCompleted(static_cast<SpeechSynthesisUtterance*>(utterance->client()), true);
}
-SpeechSynthesisUtterance* SpeechSynthesis::currentSpeechUtterance() const
-{
- if (!m_utteranceQueue.isEmpty())
- return m_utteranceQueue.first().get();
- return 0;
-}
-
const AtomicString& SpeechSynthesis::interfaceName() const
{
return EventTargetNames::SpeechSynthesisUtterance;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698