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

Unified Diff: third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.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/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..959c1bce29ffe488d02206faf5736878702e3292 100644
--- a/third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.cpp
+++ b/third_party/WebKit/Source/modules/encryptedmedia/ContentDecryptionModuleResultPromise.cpp
@@ -107,11 +107,7 @@ 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
- // 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();
}
DEFINE_TRACE(ContentDecryptionModuleResultPromise) {

Powered by Google App Engine
This is Rietveld 408576698