summaryrefslogtreecommitdiffstats
path: root/components/cronet
diff options
context:
space:
mode:
authorkundaji <kundaji@chromium.org>2015-07-21 10:13:52 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-21 17:15:57 +0000
commitef3d9b3a8377ea053159d477731d6a44dfd40bcc (patch)
treee270c9795354e0c05b0353b367287db0495dd966 /components/cronet
parent8aa4487a40c3f9bd7a36100cab0e330b9fa9b2cb (diff)
downloadchromium_src-ef3d9b3a8377ea053159d477731d6a44dfd40bcc.zip
chromium_src-ef3d9b3a8377ea053159d477731d6a44dfd40bcc.tar.gz
chromium_src-ef3d9b3a8377ea053159d477731d6a44dfd40bcc.tar.bz2
Use new API of DataReductionProxyService. Fixes CroNet build break.
Review URL: https://codereview.chromium.org/1238043005 Cr-Commit-Position: refs/heads/master@{#339671}
Diffstat (limited to 'components/cronet')
-rw-r--r--components/cronet/android/cronet_data_reduction_proxy.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/components/cronet/android/cronet_data_reduction_proxy.cc b/components/cronet/android/cronet_data_reduction_proxy.cc
index f6f47ef..c4c19df 100644
--- a/components/cronet/android/cronet_data_reduction_proxy.cc
+++ b/components/cronet/android/cronet_data_reduction_proxy.cc
@@ -18,6 +18,7 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h"
+#include "components/data_reduction_proxy/core/browser/data_store.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h"
#include "net/url_request/url_request_context_getter.h"
@@ -109,15 +110,13 @@ void CronetDataReductionProxy::Init(bool enable,
url_request_context_getter_ =
new net::TrivialURLRequestContextGetter(
context, task_runner_);
- scoped_ptr<data_reduction_proxy::DataReductionProxyCompressionStats>
- compression_stats(
- new data_reduction_proxy::DataReductionProxyCompressionStats(
- prefs_.get(), task_runner_, base::TimeDelta()));
scoped_ptr<data_reduction_proxy::DataReductionProxyService>
data_reduction_proxy_service(
new data_reduction_proxy::DataReductionProxyService(
- compression_stats.Pass(), settings_.get(), prefs_.get(),
- url_request_context_getter_.get(), task_runner_));
+ settings_.get(), prefs_.get(),
+ url_request_context_getter_.get(),
+ make_scoped_ptr(new data_reduction_proxy::DataStore()),
+ task_runner_, task_runner_, task_runner_, base::TimeDelta()));
io_data_->SetDataReductionProxyService(
data_reduction_proxy_service->GetWeakPtr());
settings_->InitDataReductionProxySettings(