| Index: third_party/WebKit/Source/modules/audio_output_devices/SetSinkIdCallbacks.cpp
|
| diff --git a/third_party/WebKit/Source/modules/audio_output_devices/SetSinkIdCallbacks.cpp b/third_party/WebKit/Source/modules/audio_output_devices/SetSinkIdCallbacks.cpp
|
| index a7b060e6e63dcc14560fa3519e90583b808a202b..efe7c3f3bcb889e8da7f3ea94fb3757a12468ebf 100644
|
| --- a/third_party/WebKit/Source/modules/audio_output_devices/SetSinkIdCallbacks.cpp
|
| +++ b/third_party/WebKit/Source/modules/audio_output_devices/SetSinkIdCallbacks.cpp
|
| @@ -42,8 +42,7 @@ SetSinkIdCallbacks::SetSinkIdCallbacks(ScriptPromiseResolver* resolver,
|
| SetSinkIdCallbacks::~SetSinkIdCallbacks() {}
|
|
|
| void SetSinkIdCallbacks::onSuccess() {
|
| - if (!m_resolver->getExecutionContext() ||
|
| - m_resolver->getExecutionContext()->activeDOMObjectsAreStopped())
|
| + if (!m_resolver->getExecutionContext())
|
| return;
|
|
|
| HTMLMediaElementAudioOutputDevice& aodElement =
|
| @@ -53,8 +52,7 @@ void SetSinkIdCallbacks::onSuccess() {
|
| }
|
|
|
| void SetSinkIdCallbacks::onError(WebSetSinkIdError error) {
|
| - if (!m_resolver->getExecutionContext() ||
|
| - m_resolver->getExecutionContext()->activeDOMObjectsAreStopped())
|
| + if (!m_resolver->getExecutionContext())
|
| return;
|
|
|
| m_resolver->reject(ToException(error));
|
|
|