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

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

Issue 2546273002: Record DRP histogram on how long back savings were cleared (Closed)
Patch Set: asvitkine comments Created 4 years 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_prefs.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc
index c2b2b4470407b209e27e4f46c2d300153fa9fd8f..b3d912c464d6c3a18ae580dd8ff9bb9b9ebd7be0 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc
@@ -21,6 +21,8 @@ void RegisterSyncableProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
false);
registry->RegisterInt64Pref(prefs::kDataReductionProxyLastEnabledTime, 0L);
+ registry->RegisterInt64Pref(
+ prefs::kDataReductionProxySavingsClearedNegativeSystemClock, 0);
registry->RegisterBooleanPref(prefs::kDataUsageReportingEnabled, false);
@@ -108,7 +110,8 @@ void RegisterPrefs(PrefRegistrySimple* registry) {
registry->RegisterStringPref(prefs::kDataReductionProxy, std::string());
registry->RegisterInt64Pref(prefs::kDataReductionProxyLastEnabledTime, 0L);
registry->RegisterInt64Pref(
- prefs::kHttpReceivedContentLength, 0);
+ prefs::kDataReductionProxySavingsClearedNegativeSystemClock, 0);
+ registry->RegisterInt64Pref(prefs::kHttpReceivedContentLength, 0);
registry->RegisterInt64Pref(
prefs::kHttpOriginalContentLength, 0);
registry->RegisterListPref(

Powered by Google App Engine
This is Rietveld 408576698