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

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

Issue 473723002: Update data reduction proxy statistics prefs less often on desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tooManyWritesPatch
Patch Set: Addressed bengr comments Created 6 years, 4 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/browser/data_reduction_proxy_prefs.cc
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_prefs.cc b/components/data_reduction_proxy/browser/data_reduction_proxy_prefs.cc
index c4770d2cb5f9d40b6c6b45769068a74c48af7b8b..3c375b72359c8418936bdcfa6be9ff6db5ae2a63 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_prefs.cc
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_prefs.cc
@@ -27,6 +27,8 @@ void RegisterSyncableProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
}
+// Add any new data reduction proxy prefs to the |pref_map_| in Init() of
bengr 2014/08/28 21:38:35 This comment is wrong. You only need the comment a
megjablon 2014/08/30 01:10:04 Done.
+// DataReductionProxyStatisticsPrefs.
void RegisterSimpleProfilePrefs(PrefRegistrySimple* registry) {
registry->RegisterBooleanPref(
data_reduction_proxy::prefs::kDataReductionProxyEnabled, false);
@@ -36,6 +38,8 @@ void RegisterSimpleProfilePrefs(PrefRegistrySimple* registry) {
data_reduction_proxy::prefs::kDataReductionProxyWasEnabledBefore, false);
}
+// Add any new data reduction proxy prefs to the |list_pref_map_| in Init() of
+// DataReductionProxyStatisticsPrefs.
void RegisterPrefs(PrefRegistrySimple* registry) {
registry->RegisterInt64Pref(
prefs::kHttpReceivedContentLength, 0);

Powered by Google App Engine
This is Rietveld 408576698