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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc

Issue 949533004: Rename DataReductionProxyStatisticsPrefs to DataReductionProxyCompressionStats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 9 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
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc
index 947f4514a86d17fe364419789e05fe43f949c5d4..b4ec8e351b339ef91d94478cdcafc1fc13c26dd6 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc
@@ -5,7 +5,7 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h"
#include "base/sequenced_task_runner.h"
-#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h"
+#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h"
#include "net/base/load_flags.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_request_status.h"
@@ -13,14 +13,14 @@
namespace data_reduction_proxy {
DataReductionProxyService::DataReductionProxyService(
- scoped_ptr<DataReductionProxyStatisticsPrefs> statistics_prefs,
+ scoped_ptr<DataReductionProxyCompressionStats> compression_stats,
DataReductionProxySettings* settings,
net::URLRequestContextGetter* request_context_getter)
: url_request_context_getter_(request_context_getter),
settings_(settings),
weak_factory_(this) {
DCHECK(settings);
- statistics_prefs_ = statistics_prefs.Pass();
+ compression_stats_ = compression_stats.Pass();
}
DataReductionProxyService::~DataReductionProxyService() {
@@ -35,8 +35,8 @@ void DataReductionProxyService::EnableCompressionStatisticsLogging(
PrefService* prefs,
scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
const base::TimeDelta& commit_delay) {
- DCHECK(!statistics_prefs_);
- statistics_prefs_.reset(new DataReductionProxyStatisticsPrefs(
+ DCHECK(!compression_stats_);
+ compression_stats_.reset(new DataReductionProxyCompressionStats(
prefs, ui_task_runner, commit_delay));
}

Powered by Google App Engine
This is Rietveld 408576698