Index: Source/modules/mediastream/MediaConstraintsImpl.cpp |
diff --git a/Source/modules/mediastream/MediaConstraintsImpl.cpp b/Source/modules/mediastream/MediaConstraintsImpl.cpp |
index 0ba8b7508d9173d9daf497ecb25660d7b265da6c..89beb4d65bcf628c656fb403935285fb5fedd6df 100644 |
--- a/Source/modules/mediastream/MediaConstraintsImpl.cpp |
+++ b/Source/modules/mediastream/MediaConstraintsImpl.cpp |
@@ -34,17 +34,16 @@ |
#include "bindings/v8/ArrayValue.h" |
#include "bindings/v8/Dictionary.h" |
-#include "bindings/v8/ExceptionState.h" |
#include "core/dom/ExceptionCode.h" |
#include "wtf/HashMap.h" |
namespace WebCore { |
-PassRefPtr<MediaConstraintsImpl> MediaConstraintsImpl::create(const Dictionary& constraints, ExceptionState& es) |
+PassRefPtr<MediaConstraintsImpl> MediaConstraintsImpl::create(const Dictionary& constraints, ExceptionCode& ec) |
{ |
RefPtr<MediaConstraintsImpl> object = adoptRef(new MediaConstraintsImpl()); |
if (!object->initialize(constraints)) { |
- es.throwDOMException(TypeMismatchError); |
+ ec = TypeMismatchError; |
return 0; |
} |
return object.release(); |