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

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

Issue 2439303002: Record UMA on number of days since data reduction proxy is enabled. (Closed)
Patch Set: fix compile error 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_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 167322ef7e541aa131038b48d050cb63cc7cb7e5..e3bbec42f012e58eb83452d2b571e568ad950aa8 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
@@ -36,6 +36,8 @@ void RegisterSyncableProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(prefs::kDataReductionProxyWasEnabledBefore,
false);
+ registry->RegisterInt64Pref(prefs::kDataReductionProxyLastEnabledTime, 0L);
+
registry->RegisterBooleanPref(prefs::kDataUsageReportingEnabled, false);
registry->RegisterInt64Pref(prefs::kHttpReceivedContentLength, 0);
@@ -124,6 +126,7 @@ void RegisterSimpleProfilePrefs(PrefRegistrySimple* registry) {
// |list_pref_map_| in Init() of DataReductionProxyCompressionStats.
void RegisterPrefs(PrefRegistrySimple* registry) {
registry->RegisterStringPref(prefs::kDataReductionProxy, std::string());
+ registry->RegisterInt64Pref(prefs::kDataReductionProxyLastEnabledTime, 0L);
registry->RegisterInt64Pref(
prefs::kHttpReceivedContentLength, 0);
registry->RegisterInt64Pref(

Powered by Google App Engine
This is Rietveld 408576698