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 72795ee8ca2fb5d230211bb51b4460807e83aeaf..15cb827d063c9e4ae386fa376f501a4cec719299 100644 |
--- a/third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp |
+++ b/third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp |
@@ -324,21 +324,8 @@ ScriptPromise NavigatorRequestMediaKeySystemAccess::requestMediaKeySystemAccess( |
"The supportedConfigurations parameter is empty.")); |
} |
- // Note: This method should only be exposed to secure contexts as indicated |
- // by the [SecureContext] IDL attribute. Since that will break some existing |
- // sites, we simply keep track of sites that aren't secure and output a |
- // deprecation message. |
- ExecutionContext* executionContext = scriptState->getExecutionContext(); |
- if (executionContext->isSecureContext()) { |
- UseCounter::count(executionContext, UseCounter::EncryptedMediaSecureOrigin); |
- } else { |
- Deprecation::countDeprecation(executionContext, |
- UseCounter::EncryptedMediaInsecureOrigin); |
- // TODO(ddorwin): Implement the following: |
- // Reject promise with a new DOMException whose name is NotSupportedError. |
- } |
- |
// 3. Let document be the calling context's Document. |
+ ExecutionContext* executionContext = scriptState->getExecutionContext(); |
Document* document = toDocument(executionContext); |
if (!document->page()) { |
return ScriptPromise::rejectWithDOMException( |