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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2179693002: Revert of 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/extensions/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0ab09d6fd5b9ec2a19a2413e6f08ba98a5bfc31e..3db8ffcf93b9f72ec2566445f896cd012b3901ac 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -967,14 +967,7 @@
net::URLRequestContextGetter* context =
host->GetStoragePartition()->GetURLRequestContext();
- // The host owns both |chrome_render| and the interface registry, which will
- // be destroyed before the filter.
- auto* chrome_render_filter = new ChromeRenderMessageFilter(id, profile);
- host->GetInterfaceRegistry()->AddInterface(
- base::Bind(&ChromeRenderMessageFilter::BindNetworkHints,
- base::Unretained(chrome_render_filter)),
- BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
- host->AddFilter(chrome_render_filter);
+ host->AddFilter(new ChromeRenderMessageFilter(id, profile));
#if defined(ENABLE_EXTENSIONS)
host->AddFilter(new cast::CastTransportHostFilter);
#endif
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/extensions/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698