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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2063683002: Migrate components/data_reduction_proxy to Mojo interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add gyp Created 4 years, 6 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 | « no previous file | chrome/common/chrome_content_client.h » ('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 710f5b5b500e9523f2147f14b1cb323231912f7e..4cd6d5efc467f990c0e3907969ab0846dda15080 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -117,7 +117,7 @@
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/content_settings/core/common/content_settings_types.h"
-#include "components/data_reduction_proxy/content/browser/data_reduction_proxy_message_filter.h"
+#include "components/data_reduction_proxy/content/browser/data_reduction_proxy_host_impl.h"
#include "components/dom_distiller/core/dom_distiller_switches.h"
#include "components/dom_distiller/core/url_constants.h"
#include "components/error_page/common/error_page_switches.h"
@@ -991,8 +991,10 @@ void ChromeContentBrowserClient::RenderProcessWillLaunch(
#endif
DataReductionProxyChromeSettings* data_reduction_proxy_settings =
DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile);
- host->AddFilter(new data_reduction_proxy::DataReductionProxyMessageFilter(
- data_reduction_proxy_settings));
+ host->GetServiceRegistry()->AddService(
leonhsl(Using Gerrit) 2016/06/14 10:16:48 Instead of here I think it's better to put the Add
Anand Mistry (off Chromium) 2016/06/15 08:09:40 I think that's reasonable given that the RenderFra
leonhsl(Using Gerrit) 2016/06/16 08:28:30 Done. A separate CL https://codereview.chromium.or
+ base::Bind(&data_reduction_proxy::DataReductionProxyHostImpl::Create,
+ data_reduction_proxy_settings),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
host->GetImmediateSender()->Send(new ChromeViewMsg_SetIsIncognitoProcess(
profile->IsOffTheRecord()));
« no previous file with comments | « no previous file | chrome/common/chrome_content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698