summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_thread_impl.cc
diff options
context:
space:
mode:
authorxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-18 23:39:03 +0000
committerxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-18 23:39:03 +0000
commit9f5b78241f7a5688396e507902cb92fb491772c6 (patch)
tree2cc73ab8e35ec80f9535837e729331566ae16b3b /content/renderer/render_thread_impl.cc
parent50cf47f0c5a315d9f0c092ece1f3c9d207dbd650 (diff)
downloadchromium_src-9f5b78241f7a5688396e507902cb92fb491772c6.zip
chromium_src-9f5b78241f7a5688396e507902cb92fb491772c6.tar.gz
chromium_src-9f5b78241f7a5688396e507902cb92fb491772c6.tar.bz2
Add flag that enable Encrypted Media Extensions on video elements.
BUG=none TEST=tested with flag enabled and disabled Review URL: http://codereview.chromium.org/9433046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132896 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_thread_impl.cc')
-rw-r--r--content/renderer/render_thread_impl.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index f493cc2..f61b5e8 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -537,6 +537,9 @@ void RenderThreadImpl::EnsureWebKitInitialized() {
WebKit::WebRuntimeFeatures::enableVideoTrack(
command_line.HasSwitch(switches::kEnableVideoTrack));
+ WebKit::WebRuntimeFeatures::enableEncryptedMedia(
+ command_line.HasSwitch(switches::kEnableEncryptedMedia));
+
#if defined(OS_CHROMEOS)
// TODO(crogers): enable once Web Audio has been tested and optimized.
WebRuntimeFeatures::enableWebAudio(false);