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

Unified Diff: content/child/runtime_features.cc

Issue 1742933002: Remove EME and MSE from RuntimeEnabledFeatures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: content/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index 9fcb6573ef1d33ab6b5b74d198c9c8f5cfcc3627..0a512513f4b59a3eb16b56749cc0ca2a0ab11ce0 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -19,23 +19,12 @@
#include "ui/gl/gl_switches.h"
#include "ui/native_theme/native_theme_switches.h"
-#if defined(OS_ANDROID)
-#include <cpu-features.h>
-#include "base/android/build_info.h"
-#include "media/base/android/media_codec_util.h"
-#endif
-
using blink::WebRuntimeFeatures;
namespace content {
static void SetRuntimeFeatureDefaultsForPlatform() {
#if defined(OS_ANDROID)
- // EME implementation needs Android MediaCodec API.
- if (!media::MediaCodecUtil::IsMediaCodecAvailable()) {
- WebRuntimeFeatures::enableEncryptedMedia(false);
- }
xhwang 2016/02/27 01:42:45 So will we just reject all rMKSA calls on platform
ddorwin 2016/02/27 01:49:02 For Clear Key (with the unified media pipeline), e
ddorwin 2016/02/27 05:23:44 I posted my thoughts in https://bugs.chromium.org/
-
// Android does not have support for PagePopup
WebRuntimeFeatures::enablePagePopup(false);
// Android does not yet support SharedWorker. crbug.com/154571
@@ -81,9 +70,6 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
if (command_line.HasSwitch(switches::kDisableDatabases))
WebRuntimeFeatures::enableDatabase(false);
- if (command_line.HasSwitch(switches::kDisableMediaSource))
- WebRuntimeFeatures::enableMediaSource(false);
-
if (command_line.HasSwitch(switches::kDisableNotifications)) {
WebRuntimeFeatures::enableNotifications(false);

Powered by Google App Engine
This is Rietveld 408576698