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

Unified Diff: chromecast/browser/cast_content_browser_client.cc

Issue 917063003: Chromecast: add platform hooks to inject browser/renderer message filters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: chromecast/browser/cast_content_browser_client.cc
diff --git a/chromecast/browser/cast_content_browser_client.cc b/chromecast/browser/cast_content_browser_client.cc
index 6578a4fe49f08950df899fe11cfafc7fb3c85f7e..a43f5d8116f7dd27032a3d51e6d5a69a8685dc6a 100644
--- a/chromecast/browser/cast_content_browser_client.cc
+++ b/chromecast/browser/cast_content_browser_client.cc
@@ -73,6 +73,11 @@ void CastContentBrowserClient::RenderProcessWillLaunch(
new media::CmaMessageFilterHost(host->GetID()));
host->AddFilter(cma_message_filter.get());
#endif // !defined(OS_ANDROID)
+
+ auto extra_filters = PlatformGetBrowserMessageFilters();
+ for (auto const& filter : extra_filters) {
+ host->AddFilter(filter.get());
+ }
}
net::URLRequestContextGetter* CastContentBrowserClient::CreateRequestContext(
« no previous file with comments | « chromecast/browser/cast_content_browser_client.h ('k') | chromecast/browser/cast_content_browser_client_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698