Index: chrome/renderer/chrome_content_renderer_client.cc |
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc |
index af761dcb5b2b5b1a0549e096fb8ad7aa82879132..dd92412de3db59dc89a077e25695dc6c179bda78 100644 |
--- a/chrome/renderer/chrome_content_renderer_client.cc |
+++ b/chrome/renderer/chrome_content_renderer_client.cc |
@@ -88,6 +88,7 @@ |
#include "content/public/common/content_constants.h" |
#include "content/public/common/content_switches.h" |
#include "content/public/common/url_constants.h" |
+#include "content/public/renderer/content_media_client.h" |
#include "content/public/renderer/plugin_instance_throttler.h" |
#include "content/public/renderer/render_frame.h" |
#include "content/public/renderer/render_thread.h" |
@@ -96,6 +97,7 @@ |
#include "extensions/common/constants.h" |
#include "extensions/features/features.h" |
#include "ipc/ipc_sync_channel.h" |
+#include "media/base/media_client.h" |
#include "media/media_features.h" |
#include "net/base/net_errors.h" |
#include "ppapi/c/private/ppb_pdf.h" |
@@ -474,6 +476,8 @@ void ChromeContentRendererClient::RenderThreadStarted() { |
leak_detector_remote_client_.reset(new LeakDetectorRemoteClient()); |
thread->AddObserver(leak_detector_remote_client_.get()); |
#endif |
+ |
+ ::media::SetMediaClient(new ::content::ContentMediaClient(this)); |
} |
void ChromeContentRendererClient::RenderFrameCreated( |