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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2310753002: Media Remoting: Data/Control plumbing between renderer and Media Router. (Closed)
Patch Set: xjz's PS4 comments addressed. Created 4 years, 3 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/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 71fb48b244cb8e6fee0f474832a27def252e25e0..d95c975824a0152b2ae0f8870deedbdc718fd4bd 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -318,6 +318,7 @@
#endif
#if defined(ENABLE_MEDIA_ROUTER)
+#include "chrome/browser/media/cast_remoting_connector.h"
#include "chrome/browser/media/router/media_router_feature.h"
#include "chrome/browser/media/router/presentation_service_delegate_impl.h"
#endif
@@ -2934,6 +2935,12 @@ void ChromeContentBrowserClient::RegisterRenderFrameMojoInterfaces(
ChromeInterfaceRegistrarAndroid::ExposeInterfacesToFrame(
registry, render_frame_host);
#endif
+
+#if defined(ENABLE_MEDIA_ROUTER)
+ registry->AddInterface(
+ base::Bind(&CastRemotingConnector::CreateRemoterFactory,
+ render_frame_host));
+#endif
}
void ChromeContentBrowserClient::ExposeInterfacesToGpuProcess(

Powered by Google App Engine
This is Rietveld 408576698