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

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

Issue 2736953003: Removing unused PreviewsDataSavings (Closed)
Patch Set: removing drp codepaths only used by previews/ Created 3 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_compression_stats.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc
index 5d4b87c9187c3d80917b0917549f7a94dabe3ee0..76df78f591baf7c97bdab469a06ab2793ac399ff 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.cc
@@ -424,20 +424,6 @@ void DataReductionProxyCompressionStats::Init() {
InitListPref(prefs::kDailyOriginalContentLengthWithDataReductionProxyEnabled);
}
-void DataReductionProxyCompressionStats::UpdateDataSavings(
- const std::string& data_usage_host,
- int64_t data_used,
- int64_t original_size) {
- DCHECK(thread_checker_.CalledOnValidThread());
- // Data is recorded at the URLRequest level, so an update should only change
- // the original size amount by the savings amount.
- int64_t update_to_original_size = original_size - data_used;
- int64_t update_to_data_used = 0;
- RecordData(update_to_data_used, update_to_original_size,
- true /* data_saver_enabled */, UPDATE, data_usage_host,
- std::string());
-}
-
void DataReductionProxyCompressionStats::UpdateContentLengths(
int64_t data_used,
int64_t original_size,

Powered by Google App Engine
This is Rietveld 408576698