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

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

Issue 1749683002: Remove the always-enabled Media from RuntimeEnabledFeatures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase (conflict in content/test/test_blink_web_unit_test_support.cc) Created 4 years, 10 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/core/html/HTMLMediaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
index 19238e202abafbc7b784eeb35a907d71b8256ade..fb8bee62880a27bfc1ae427b6a31898015dedbbc 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -263,9 +263,6 @@ WebMimeRegistry::SupportsType HTMLMediaElement::supportsType(const ContentType&
{
DEFINE_STATIC_LOCAL(const String, codecs, ("codecs"));
- if (!RuntimeEnabledFeatures::mediaEnabled())
- return WebMimeRegistry::IsNotSupported;
-
String type = contentType.type().lower();
// The codecs string is not lower-cased because MP4 values are case sensitive
// per http://tools.ietf.org/html/rfc4281#page-7.
@@ -355,7 +352,6 @@ HTMLMediaElement::HTMLMediaElement(const QualifiedName& tagName, Document& docum
#if ENABLE(OILPAN)
ThreadState::current()->registerPreFinalizer(this);
#endif
- ASSERT(RuntimeEnabledFeatures::mediaEnabled());
WTF_LOG(Media, "HTMLMediaElement::HTMLMediaElement(%p)", this);
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLAudioElement.idl ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698