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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 15383003: Rename switch to disable prefixed Encrypted Media APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only Created 7 years, 7 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 | « content/public/common/content_switches.cc ('k') | media/base/media_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index b83ec9126a6896fb8678051964c3600aaaa04cfd..dfd44c354e5cf6b91090aa9b957a042e0a54b372 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -79,7 +79,6 @@
#include "ipc/ipc_platform_file.h"
#include "media/base/audio_hardware_config.h"
#include "media/base/media.h"
-#include "media/base/media_switches.h"
#include "net/base/net_errors.h"
#include "net/base/net_util.h"
#include "third_party/WebKit/public/platform/WebString.h"
@@ -644,6 +643,8 @@ void RenderThreadImpl::WidgetRestored() {
static void AdjustRuntimeFeatureDefaultsForPlatform() {
#if defined(OS_ANDROID) && !defined(GOOGLE_TV)
WebRuntimeFeatures::enableWebKitMediaSource(false);
+ WebRuntimeFeatures::enableLegacyEncryptedMedia(false);
+ WebRuntimeFeatures::enableEncryptedMedia(false);
#endif
#if defined(OS_ANDROID)
@@ -705,8 +706,11 @@ static void AdjustRuntimeFeaturesFromArgs(const CommandLine& command_line) {
if (command_line.HasSwitch(switches::kDisableFullScreen))
WebRuntimeFeatures::enableFullscreen(false);
- if (command_line.HasSwitch(switches::kDisableEncryptedMedia))
- WebRuntimeFeatures::enableEncryptedMedia(false);
+ if (command_line.HasSwitch(switches::kEnableEncryptedMedia))
+ WebRuntimeFeatures::enableEncryptedMedia(true);
+
+ if (command_line.HasSwitch(switches::kDisableLegacyEncryptedMedia))
+ WebRuntimeFeatures::enableLegacyEncryptedMedia(false);
if (command_line.HasSwitch(switches::kEnableWebMIDI))
WebRuntimeFeatures::enableWebMIDI(true);
« no previous file with comments | « content/public/common/content_switches.cc ('k') | media/base/media_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698