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

Unified Diff: third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp

Issue 2941003002: Add use counters for navigator.requestMediaKeySystemAccess (Closed)
Patch Set: . Created 3 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/public/platform/WebFeature.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9b2f5e950b9b4e34a8d0d7d2185abc6cad37e134..787837269ebf0ded1debe9f4993fde62231fb90c 100644
--- a/third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp
+++ b/third_party/WebKit/Source/modules/encryptedmedia/NavigatorRequestMediaKeySystemAccess.cpp
@@ -327,6 +327,10 @@ ScriptPromise NavigatorRequestMediaKeySystemAccess::requestMediaKeySystemAccess(
"The context provided is not associated with a page."));
}
+ UseCounter::Count(*document, WebFeature::kEncryptedMediaSecureOrigin);
+ UseCounter::CountCrossOriginIframe(
+ *document, WebFeature::kEncryptedMediaCrossOriginIframe);
+
// 4. Let origin be the origin of document.
// (Passed with the execution context.)
« no previous file with comments | « no previous file | third_party/WebKit/public/platform/WebFeature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698