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

Unified Diff: third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.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/encryptedmedia/ContentDecryptionModuleResultPromise.cpp
diff --git a/third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.cpp b/third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.cpp
index 3bd4dd72b08599288aef33b8cf814be7bca3ca89..6f7953fad58e1475ffae30b90ab2d4b666e63a6f 100644
--- a/third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.cpp
+++ b/third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.cpp
@@ -107,11 +107,10 @@ ExecutionContext* ContentDecryptionModuleResultPromise::getExecutionContext()
bool ContentDecryptionModuleResultPromise::isValidToFulfillPromise() {
// getExecutionContext() is no longer valid once the context is destroyed.
- // activeDOMObjectsAreStopped() is called to see if the context is in the
+ // isContextDestroyed() is called to see if the context is in the
// process of being destroyed. If it is, there is no need to fulfill this
// promise which is about to go away anyway.
- return getExecutionContext() &&
- !getExecutionContext()->activeDOMObjectsAreStopped();
+ return getExecutionContext() && !getExecutionContext()->isContextDestroyed();
}
DEFINE_TRACE(ContentDecryptionModuleResultPromise) {

Powered by Google App Engine
This is Rietveld 408576698