| Index: Source/modules/mediastream/RTCIceCandidate.cpp
|
| diff --git a/Source/modules/mediastream/RTCIceCandidate.cpp b/Source/modules/mediastream/RTCIceCandidate.cpp
|
| index b9db8c3758d15216cbabaf51c038382979b4e125..2038f137aa66bc39278293023e7eafe684d41425 100644
|
| --- a/Source/modules/mediastream/RTCIceCandidate.cpp
|
| +++ b/Source/modules/mediastream/RTCIceCandidate.cpp
|
| @@ -33,18 +33,17 @@
|
| #include "modules/mediastream/RTCIceCandidate.h"
|
|
|
| #include "bindings/v8/Dictionary.h"
|
| -#include "bindings/v8/ExceptionState.h"
|
| #include "core/dom/ExceptionCode.h"
|
| #include "public/platform/WebRTCICECandidate.h"
|
|
|
| namespace WebCore {
|
|
|
| -PassRefPtr<RTCIceCandidate> RTCIceCandidate::create(const Dictionary& dictionary, ExceptionState& es)
|
| +PassRefPtr<RTCIceCandidate> RTCIceCandidate::create(const Dictionary& dictionary, ExceptionCode& ec)
|
| {
|
| String candidate;
|
| bool ok = dictionary.get("candidate", candidate);
|
| if (!ok || !candidate.length()) {
|
| - es.throwDOMException(TypeMismatchError);
|
| + ec = TypeMismatchError;
|
| return 0;
|
| }
|
|
|
|
|