Chromium Code Reviews| 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())); |