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

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

Issue 1167543010: UMA for data savings displayed to users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Whitespace. Created 5 years, 6 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.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
index 6206adda68fd26af1eb2a4cdb856d5decaf51afa..0ed7d1b386c3d349b91409ca857c29068d290f5c 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h
@@ -132,6 +132,11 @@ class DataReductionProxyCompressionStats {
DataReductionProxyRequestType request_type,
base::Time now);
+ // Record UMA with data savings bytes and percent over the past
+ // |DataReductionProxy::kNumDaysInHistorySummary| days. These numbers
+ // are displayed to users as their data savings.
+ void RecordUserVisibleDataSavings();
+
PrefService* pref_service_;
scoped_refptr<base::SequencedTaskRunner> task_runner_;
const base::TimeDelta delay_;

Powered by Google App Engine
This is Rietveld 408576698