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

Unified Diff: third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.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/NavigatorRequestMediaKeySystemAccess.cpp
diff --git a/third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp b/third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp
index a81ab3a6a7563331af00c44fecc38c2c9b721519..55b172e47c6f07a03aa09b0559169fc93eabbb86 100644
--- a/third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp
+++ b/third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp
@@ -224,11 +224,7 @@ void MediaKeySystemAccessInitializer::requestNotSupported(
}
bool MediaKeySystemAccessInitializer::isExecutionContextValid() const {
- // activeDOMObjectsAreStopped() is called to see if the context is in the
- // process of being destroyed. If it is true, assume the context is no
- // longer valid as it is about to be destroyed anyway.
- ExecutionContext* context = m_resolver->getExecutionContext();
- return context && !context->activeDOMObjectsAreStopped();
+ return m_resolver->getExecutionContext();
}
void MediaKeySystemAccessInitializer::checkVideoCapabilityRobustness() const {

Powered by Google App Engine
This is Rietveld 408576698