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

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

Issue 2552993002: Rename activeDOMObjectsAreStopped to isContextDestroyed (Closed)
Patch Set: Created 4 years 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..8521314575069db775200f903769cdd24a02b720 100644
--- a/third_party/WebKit/Source/modules/audio_output_devices/SetSinkIdCallbacks.cpp
+++ b/third_party/WebKit/Source/modules/audio_output_devices/SetSinkIdCallbacks.cpp
@@ -43,7 +43,7 @@ SetSinkIdCallbacks::~SetSinkIdCallbacks() {}
void SetSinkIdCallbacks::onSuccess() {
if (!m_resolver->getExecutionContext() ||
- m_resolver->getExecutionContext()->activeDOMObjectsAreStopped())
+ m_resolver->getExecutionContext()->isContextDestroyed())
return;
HTMLMediaElementAudioOutputDevice& aodElement =
@@ -54,7 +54,7 @@ void SetSinkIdCallbacks::onSuccess() {
void SetSinkIdCallbacks::onError(WebSetSinkIdError error) {
if (!m_resolver->getExecutionContext() ||
- m_resolver->getExecutionContext()->activeDOMObjectsAreStopped())
+ m_resolver->getExecutionContext()->isContextDestroyed())
return;
m_resolver->reject(ToException(error));

Powered by Google App Engine
This is Rietveld 408576698