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

Unified Diff: Source/core/html/HTMLMediaElement.cpp

Issue 135003003: Add a UseCounter for the HTMLMediaElement.canPlayType keySystem argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase!! Created 6 years, 11 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 | « Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.cpp
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
index a33aed3b5c949a868eaa02573c07bbd64856c2c3..7f11f138d8f1a76eaf396d4e489a30bc6b48d484 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -585,6 +585,9 @@ HTMLMediaElement::NetworkState HTMLMediaElement::networkState() const
String HTMLMediaElement::canPlayType(const String& mimeType, const String& keySystem) const
{
+ if (!keySystem.isNull())
+ UseCounter::count(document(), UseCounter::CanPlayTypeKeySystem);
+
WebMimeRegistry::SupportsType support = supportsType(ContentType(mimeType), keySystem);
String canPlay;
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698