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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2144533002: Convert network hints to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 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

Powered by Google App Engine
This is Rietveld 408576698