| 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 85c2439aab2cb312b16c1c8a6fd8f14e687ba8e5..129e493d23098c12e93c7204acd7355993286f8d 100644
|
| --- a/third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp
|
| +++ b/third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp
|
| @@ -222,11 +222,11 @@ void MediaKeySystemAccessInitializer::requestNotSupported(
|
| }
|
|
|
| bool MediaKeySystemAccessInitializer::isExecutionContextValid() const {
|
| - // 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 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 context && !context->isContextDestroyed();
|
| }
|
|
|
| void MediaKeySystemAccessInitializer::checkVideoCapabilityRobustness() const {
|
|
|