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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.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: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
index fb52580c5471ef3933c6bdac724765dce08f8ab6..a0fe851b2ff80b2d7e51bf176d05a7d97530195e 100644
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
@@ -16,11 +16,11 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/common/pref_names.h"
+#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.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_reduction_proxy_statistics_prefs.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "net/url_request/url_request_context_getter.h"
@@ -91,14 +91,13 @@ void DataReductionProxyChromeSettings::InitDataReductionProxySettings(
base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60);
#endif
- scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs>
- statistics_prefs = make_scoped_ptr(
- new data_reduction_proxy::DataReductionProxyStatisticsPrefs(
+ scoped_ptr<data_reduction_proxy::DataReductionProxyCompressionStats>
+ compression_stats = make_scoped_ptr(
+ new data_reduction_proxy::DataReductionProxyCompressionStats(
profile_prefs, ui_task_runner, commit_delay));
- scoped_ptr<data_reduction_proxy::DataReductionProxyService>
- service = make_scoped_ptr(
- new data_reduction_proxy::DataReductionProxyService(
- statistics_prefs.Pass(), this, request_context_getter));
+ scoped_ptr<data_reduction_proxy::DataReductionProxyService> service =
+ make_scoped_ptr(new data_reduction_proxy::DataReductionProxyService(
+ compression_stats.Pass(), this, request_context_getter));
data_reduction_proxy::DataReductionProxySettings::
InitDataReductionProxySettings(profile_prefs, io_data, service.Pass());
io_data->SetDataReductionProxyService(
« no previous file with comments | « android_webview/browser/aw_browser_context.cc ('k') | chrome/browser/ui/webui/net_internals/net_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698