Chromium Code Reviews| Index: chrome/browser/profiles/profile_impl_io_data.cc |
| diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc |
| index b49d8075939e9c4bd950fb3b872d0f93d9e7a99b..9c808378f3cca78dac7cd27521eb735884103b60 100644 |
| --- a/chrome/browser/profiles/profile_impl_io_data.cc |
| +++ b/chrome/browser/profiles/profile_impl_io_data.cc |
| @@ -61,6 +61,10 @@ |
| #include "net/url_request/url_request_job_factory_impl.h" |
| #include "storage/browser/quota/special_storage_policy.h" |
| +#if defined(OS_ANDROID) |
| +#include "components/data_reduction_proxy/content/browser/data_reduction_proxy_ui_service.h" |
| +#endif |
| + |
| namespace { |
| net::BackendType ChooseCacheBackendType() { |
| @@ -472,6 +476,16 @@ void ProfileImplIOData::InitializeInternal( |
| .get()))); |
| data_reduction_proxy_usage_stats()->set_unavailable_callback( |
| data_reduction_proxy_unavailable_callback()); |
| +#if defined(OS_ANDROID) |
| + set_data_reduction_proxy_ui_service( |
| + scoped_ptr<data_reduction_proxy::DataReductionProxyUIService> |
| + (new data_reduction_proxy::DataReductionProxyUIService( |
|
mmenke
2015/01/16 20:15:27
DataReductionProxyDebugUIService? Should make it
megjablon
2015/01/17 02:21:48
Done.
|
| + base::Bind(&data_reduction_proxy::DataReductionProxyConfigurator:: |
| + GetProxyConfigOnIOThread, |
| + base::Unretained(data_reduction_proxy_configurator())), |
| + BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
| + BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)))); |
| +#endif |
| // TODO(vadimt): Remove ScopedTracker below once crbug.com/436671 is fixed. |
| tracked_objects::ScopedTracker tracking_profile3( |