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

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

Issue 19724003: Revert "Transition modules/** to use ExceptionState" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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/SpeechRecognition.h ('k') | Source/modules/webaudio/AnalyserNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/speech/SpeechRecognition.cpp
diff --git a/Source/modules/speech/SpeechRecognition.cpp b/Source/modules/speech/SpeechRecognition.cpp
index 5f55c70623201ce85036668eafa16815d233deec..6033a8932a4c667c21c6357c8b05455dbdc0a40b 100644
--- a/Source/modules/speech/SpeechRecognition.cpp
+++ b/Source/modules/speech/SpeechRecognition.cpp
@@ -27,7 +27,6 @@
#include "modules/speech/SpeechRecognition.h"
-#include "bindings/v8/ExceptionState.h"
#include "core/dom/Document.h"
#include "core/dom/ExceptionCode.h"
#include "core/page/Page.h"
@@ -44,11 +43,11 @@ PassRefPtr<SpeechRecognition> SpeechRecognition::create(ScriptExecutionContext*
return speechRecognition.release();
}
-void SpeechRecognition::start(ExceptionState& es)
+void SpeechRecognition::start(ExceptionCode& ec)
{
ASSERT(m_controller);
if (m_started) {
- es.throwDOMException(InvalidStateError);
+ ec = InvalidStateError;
return;
}
« no previous file with comments | « Source/modules/speech/SpeechRecognition.h ('k') | Source/modules/webaudio/AnalyserNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698