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

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

Issue 2367403005: Snackbar for promoting Data Saver to existing users (Closed)
Patch Set: rename "data saving" to "data savings" for consistency Created 4 years, 2 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 d787ad0e0f83d1a6f23483df1a9dc1e8df91f1a8..40fbb7882ca0712e4eadf4f47640abc89fde054d 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
@@ -569,6 +569,14 @@ void DataReductionProxyCompressionStats::ResetStatistics() {
}
}
+int64_t DataReductionProxyCompressionStats::GetHttpReceivedContentLength() {
+ return GetInt64(prefs::kHttpReceivedContentLength);
+}
+
+int64_t DataReductionProxyCompressionStats::GetHttpOriginalContentLength() {
+ return GetInt64(prefs::kHttpOriginalContentLength);
+}
+
ContentLengthList DataReductionProxyCompressionStats::GetDailyContentLengths(
const char* pref_name) {
ContentLengthList content_lengths;

Powered by Google App Engine
This is Rietveld 408576698