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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 2712983004: Simplify/Cleanup MediaClient (Closed)
Patch Set: Created 3 years, 9 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: 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(

Powered by Google App Engine
This is Rietveld 408576698