Index: third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp |
diff --git a/third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp b/third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp |
index 454956d2a1131e19744f9f2f8630f250645e6e0d..8fdff01ad926612984497decbb94271e45098201 100644 |
--- a/third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp |
+++ b/third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp |
@@ -26,7 +26,6 @@ |
#include "config.h" |
#include "modules/speech/SpeechSynthesis.h" |
-#include "bindings/core/v8/ExceptionState.h" |
#include "core/dom/ExecutionContext.h" |
#include "modules/speech/SpeechSynthesisEvent.h" |
#include "platform/speech/PlatformSpeechSynthesisVoice.h" |
@@ -106,12 +105,9 @@ void SpeechSynthesis::startSpeakingImmediately() |
m_platformSpeechSynthesizer->speak(utterance->platformUtterance()); |
} |
-void SpeechSynthesis::speak(SpeechSynthesisUtterance* utterance, ExceptionState& exceptionState) |
+void SpeechSynthesis::speak(SpeechSynthesisUtterance* utterance) |
{ |
- if (!utterance) { |
- exceptionState.throwTypeError("Invalid utterance argument"); |
- return; |
- } |
+ ASSERT(utterance); |
m_utteranceQueue.append(utterance); |