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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2310753002: Media Remoting: Data/Control plumbing between renderer and Media Router. (Closed)
Patch Set: 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 5d1c42c10ca7b03471b49e95e2fc62fe1bea8b65..bcf4d7ccedb50294b823e287489bb827d7521a20 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -320,6 +320,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
@@ -2938,6 +2939,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