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

Unified Diff: third_party/WebKit/Source/modules/audio_output_devices/SetSinkIdCallbacks.cpp

Issue 2433773006: Remove ExecutionContext::activeDOMObjectsAreStopped()
Patch Set: Created 4 years, 2 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
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));

Powered by Google App Engine
This is Rietveld 408576698