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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2310753002: Media Remoting: Data/Control plumbing between renderer and Media Router. (Closed)
Patch Set: Just a REBASE on ToT before commit. 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 6d999a741c5c77b59cb7aee79b67d5f4543f329a..5a03ae340327b199b86239b4e4e323f9dcdfba88 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -322,6 +322,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
@@ -2955,6 +2956,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