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

Unified Diff: components/cronet/android/cronet_data_reduction_proxy.cc

Issue 1238043005: Use new API of DataReductionProxyService. Fixes CroNet build break. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to head Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/cronet_data_reduction_proxy.cc
diff --git a/components/cronet/android/cronet_data_reduction_proxy.cc b/components/cronet/android/cronet_data_reduction_proxy.cc
index f6f47ef3c9be5f30fdec8ed4f5d9271895915602..c4c19df3a163b8864aeaf2aca7e6be1ec99781cd 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(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698