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 f8af92a04931b0c22929199aa1e70f96b6998325..e87aac6f8f0029d030e959bf592bbcbbc112cfd9 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -967,7 +967,11 @@ void ChromeContentBrowserClient::RenderProcessWillLaunch( |
net::URLRequestContextGetter* context = |
host->GetStoragePartition()->GetURLRequestContext(); |
- host->AddFilter(new ChromeRenderMessageFilter(id, profile)); |
+ auto chrome_render = new ChromeRenderMessageFilter(id, profile); |
+ host->GetInterfaceRegistry()->AddInterface( |
Sam McNally
2016/07/12 05:25:29
I think you want this interface to live on the IO
tibell
2016/07/12 07:14:24
Done.
|
+ base::Bind(&ChromeRenderMessageFilter::BindNetworkHints, |
+ base::Unretained(chrome_render))); |
+ host->AddFilter(chrome_render); |
#if defined(ENABLE_EXTENSIONS) |
host->AddFilter(new cast::CastTransportHostFilter); |
#endif |