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

Unified Diff: content/shell/shell_render_process_observer.cc

Issue 9316077: Enable audio/video tag in content_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: content/shell/shell_render_process_observer.cc
diff --git a/content/shell/shell_render_process_observer.cc b/content/shell/shell_render_process_observer.cc
index a46f6f9797631307ae9ed5d311d9bfbfc5ffe394..93fb6a1c11e0f0c9f957d049fbd75966731d3511 100644
--- a/content/shell/shell_render_process_observer.cc
+++ b/content/shell/shell_render_process_observer.cc
@@ -8,6 +8,10 @@
#include "content/public/renderer/render_thread.h"
#include "content/shell/layout_test_controller_bindings.h"
#include "content/shell/shell_switches.h"
+#include "media/base/media.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h"
+
+using WebKit::WebRuntimeFeatures;
namespace content {
@@ -21,6 +25,7 @@ ShellRenderProcessObserver::~ShellRenderProcessObserver() {
void ShellRenderProcessObserver::WebKitInitialized() {
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree))
RenderThread::Get()->RegisterExtension(new LayoutTestControllerBindings());
+ WebRuntimeFeatures::enableMediaPlayer(media::IsMediaLibraryInitialized());
jam 2012/02/03 00:49:44 ditto
vrk (LEFT CHROMIUM) 2012/03/06 02:07:50 Done.
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698