| 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 09c9660931e81466e90a65a1cf6df90a2f62dbfd..527ed8e0298b35a4765a111cc64b189012cd67f0 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
|
| @@ -41,11 +41,38 @@ void RegisterSyncableProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
|
| registry->RegisterBooleanPref(prefs::kUpdateDailyReceivedContentLengths,
|
| false);
|
| registry->RegisterListPref(prefs::kDailyHttpOriginalContentLength);
|
| + registry->RegisterInt64Pref(prefs::kDailyHttpOriginalContentLengthApplication,
|
| + 0L);
|
| + registry->RegisterInt64Pref(prefs::kDailyHttpOriginalContentLengthVideo, 0L);
|
| + registry->RegisterInt64Pref(prefs::kDailyHttpOriginalContentLengthUnknown,
|
| + 0L);
|
| +
|
| registry->RegisterListPref(prefs::kDailyHttpReceivedContentLength);
|
| + registry->RegisterInt64Pref(prefs::kDailyHttpReceivedContentLengthApplication,
|
| + 0L);
|
| + registry->RegisterInt64Pref(prefs::kDailyHttpReceivedContentLengthVideo, 0L);
|
| + registry->RegisterInt64Pref(prefs::kDailyHttpReceivedContentLengthUnknown,
|
| + 0L);
|
| +
|
| registry->RegisterListPref(
|
| prefs::kDailyOriginalContentLengthWithDataReductionProxyEnabled);
|
| + registry->RegisterInt64Pref(
|
| + prefs::
|
| + kDailyOriginalContentLengthWithDataReductionProxyEnabledApplication,
|
| + 0L);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyOriginalContentLengthWithDataReductionProxyEnabledVideo, 0L);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyOriginalContentLengthWithDataReductionProxyEnabledUnknown,
|
| + 0L);
|
| registry->RegisterListPref(
|
| prefs::kDailyContentLengthWithDataReductionProxyEnabled);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyContentLengthWithDataReductionProxyEnabledApplication, 0L);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyContentLengthWithDataReductionProxyEnabledVideo, 0L);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyContentLengthWithDataReductionProxyEnabledUnknown, 0L);
|
| registry->RegisterListPref(
|
| prefs::kDailyContentLengthHttpsWithDataReductionProxyEnabled);
|
| registry->RegisterListPref(
|
| @@ -56,7 +83,20 @@ void RegisterSyncableProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
|
| prefs::kDailyContentLengthUnknownWithDataReductionProxyEnabled);
|
| registry->RegisterListPref(
|
| prefs::kDailyOriginalContentLengthViaDataReductionProxy);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyOriginalContentLengthViaDataReductionProxyApplication, 0L);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyOriginalContentLengthViaDataReductionProxyVideo, 0L);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyOriginalContentLengthViaDataReductionProxyUnknown, 0L);
|
| registry->RegisterListPref(prefs::kDailyContentLengthViaDataReductionProxy);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyContentLengthViaDataReductionProxyApplication, 0L);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyContentLengthViaDataReductionProxyVideo, 0L);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyContentLengthViaDataReductionProxyUnknown, 0L);
|
| +
|
| registry->RegisterInt64Pref(prefs::kDailyHttpContentLengthLastUpdateDate, 0L);
|
| registry->RegisterIntegerPref(prefs::kLoFiImplicitOptOutEpoch, 0);
|
| registry->RegisterIntegerPref(prefs::kLoFiLoadImagesPerSession, 0);
|
| @@ -86,14 +126,38 @@ void RegisterPrefs(PrefRegistrySimple* registry) {
|
| prefs::kHttpOriginalContentLength, 0);
|
| registry->RegisterListPref(
|
| prefs::kDailyHttpOriginalContentLength);
|
| - registry->RegisterListPref(
|
| - prefs::kDailyHttpReceivedContentLength);
|
| + registry->RegisterInt64Pref(prefs::kDailyHttpOriginalContentLengthApplication,
|
| + 0L);
|
| + registry->RegisterInt64Pref(prefs::kDailyHttpOriginalContentLengthVideo, 0L);
|
| + registry->RegisterInt64Pref(prefs::kDailyHttpOriginalContentLengthUnknown,
|
| + 0L);
|
| + registry->RegisterListPref(prefs::kDailyHttpReceivedContentLength);
|
| + registry->RegisterInt64Pref(prefs::kDailyHttpReceivedContentLengthApplication,
|
| + 0L);
|
| + registry->RegisterInt64Pref(prefs::kDailyHttpReceivedContentLengthVideo, 0L);
|
| + registry->RegisterInt64Pref(prefs::kDailyHttpReceivedContentLengthUnknown,
|
| + 0L);
|
| registry->RegisterBooleanPref(prefs::kUpdateDailyReceivedContentLengths,
|
| false);
|
| registry->RegisterListPref(
|
| prefs::kDailyOriginalContentLengthWithDataReductionProxyEnabled);
|
| + registry->RegisterInt64Pref(
|
| + prefs::
|
| + kDailyOriginalContentLengthWithDataReductionProxyEnabledApplication,
|
| + 0L);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyOriginalContentLengthWithDataReductionProxyEnabledVideo, 0L);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyOriginalContentLengthWithDataReductionProxyEnabledUnknown,
|
| + 0L);
|
| registry->RegisterListPref(
|
| prefs::kDailyContentLengthWithDataReductionProxyEnabled);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyContentLengthWithDataReductionProxyEnabledApplication, 0L);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyContentLengthWithDataReductionProxyEnabledVideo, 0L);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyContentLengthWithDataReductionProxyEnabledUnknown, 0L);
|
| registry->RegisterListPref(
|
| prefs::kDailyContentLengthHttpsWithDataReductionProxyEnabled);
|
| registry->RegisterListPref(
|
| @@ -104,8 +168,19 @@ void RegisterPrefs(PrefRegistrySimple* registry) {
|
| prefs::kDailyContentLengthUnknownWithDataReductionProxyEnabled);
|
| registry->RegisterListPref(
|
| prefs::kDailyOriginalContentLengthViaDataReductionProxy);
|
| - registry->RegisterListPref(
|
| - prefs::kDailyContentLengthViaDataReductionProxy);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyOriginalContentLengthViaDataReductionProxyApplication, 0L);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyOriginalContentLengthViaDataReductionProxyVideo, 0L);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyOriginalContentLengthViaDataReductionProxyUnknown, 0L);
|
| + registry->RegisterListPref(prefs::kDailyContentLengthViaDataReductionProxy);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyContentLengthViaDataReductionProxyApplication, 0L);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyContentLengthViaDataReductionProxyVideo, 0L);
|
| + registry->RegisterInt64Pref(
|
| + prefs::kDailyContentLengthViaDataReductionProxyUnknown, 0L);
|
| registry->RegisterInt64Pref(
|
| prefs::kDailyHttpContentLengthLastUpdateDate, 0L);
|
| registry->RegisterIntegerPref(prefs::kLoFiImplicitOptOutEpoch, 0);
|
|
|