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

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

Issue 644883006: Pref to update daily content lengths with the latest values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add new include Created 6 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 95367e878dbc42b6cb966a5b8bab4ed25b1b1aad..3652fcbc3ae6e5ff096c2ca47dfb54b63958caa2 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
@@ -56,6 +56,9 @@ void RegisterSyncableProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
prefs::kStatisticsPrefsMigrated,
false,
user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterBooleanPref(prefs::kUpdateDailyReceivedContentLengths,
+ false,
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
registry->RegisterListPref(
prefs::kDailyHttpOriginalContentLength,
user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
@@ -116,6 +119,8 @@ void RegisterPrefs(PrefRegistrySimple* registry) {
prefs::kDailyHttpOriginalContentLength);
registry->RegisterListPref(
prefs::kDailyHttpReceivedContentLength);
+ registry->RegisterBooleanPref(prefs::kUpdateDailyReceivedContentLengths,
+ false);
registry->RegisterListPref(
prefs::kDailyOriginalContentLengthWithDataReductionProxyEnabled);
registry->RegisterListPref(

Powered by Google App Engine
This is Rietveld 408576698