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

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

Issue 1102733002: Remove most occurences of PrefRegistrySyncable::UNSYNCABLE_PREF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs-add-reg-funcs
Patch Set: Created 5 years, 8 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 00acd8836ff61539fc74a862686eecb97a5641f4..2b59e3a8e1e9a51a2885628bc709e9cd36207a5e 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
@@ -30,69 +30,35 @@ namespace data_reduction_proxy {
// Make sure any changes here that have the potential to impact android_webview
// are reflected in RegisterSimpleProfilePrefs.
void RegisterSyncableProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
- registry->RegisterBooleanPref(
- prefs::kDataReductionProxyEnabled,
- false,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterBooleanPref(
- prefs::kDataReductionProxyAltEnabled,
- false,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterBooleanPref(
- prefs::kDataReductionProxyWasEnabledBefore,
- false,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterBooleanPref(prefs::kDataReductionProxyEnabled, false);
+ registry->RegisterBooleanPref(prefs::kDataReductionProxyAltEnabled, false);
+ registry->RegisterBooleanPref(prefs::kDataReductionProxyWasEnabledBefore,
+ false);
- registry->RegisterInt64Pref(
- prefs::kHttpReceivedContentLength,
- 0,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterInt64Pref(
- prefs::kHttpOriginalContentLength,
- 0,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterInt64Pref(prefs::kHttpReceivedContentLength, 0);
+ registry->RegisterInt64Pref(prefs::kHttpOriginalContentLength, 0);
- registry->RegisterBooleanPref(
- prefs::kStatisticsPrefsMigrated,
- false,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterBooleanPref(prefs::kStatisticsPrefsMigrated, false);
registry->RegisterBooleanPref(prefs::kUpdateDailyReceivedContentLengths,
- false,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterListPref(
- prefs::kDailyHttpOriginalContentLength,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterListPref(
- prefs::kDailyHttpReceivedContentLength,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterListPref(
- prefs::kDailyOriginalContentLengthWithDataReductionProxyEnabled,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ false);
+ registry->RegisterListPref(prefs::kDailyHttpOriginalContentLength);
+ registry->RegisterListPref(prefs::kDailyHttpReceivedContentLength);
registry->RegisterListPref(
- prefs::kDailyContentLengthWithDataReductionProxyEnabled,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ prefs::kDailyOriginalContentLengthWithDataReductionProxyEnabled);
registry->RegisterListPref(
- prefs::kDailyContentLengthHttpsWithDataReductionProxyEnabled,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ prefs::kDailyContentLengthWithDataReductionProxyEnabled);
registry->RegisterListPref(
- prefs::kDailyContentLengthShortBypassWithDataReductionProxyEnabled,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ prefs::kDailyContentLengthHttpsWithDataReductionProxyEnabled);
registry->RegisterListPref(
- prefs::kDailyContentLengthLongBypassWithDataReductionProxyEnabled,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ prefs::kDailyContentLengthShortBypassWithDataReductionProxyEnabled);
registry->RegisterListPref(
- prefs::kDailyContentLengthUnknownWithDataReductionProxyEnabled,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ prefs::kDailyContentLengthLongBypassWithDataReductionProxyEnabled);
registry->RegisterListPref(
- prefs::kDailyOriginalContentLengthViaDataReductionProxy,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ prefs::kDailyContentLengthUnknownWithDataReductionProxyEnabled);
registry->RegisterListPref(
- prefs::kDailyContentLengthViaDataReductionProxy,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterInt64Pref(
- prefs::kDailyHttpContentLengthLastUpdateDate,
- 0L,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ prefs::kDailyOriginalContentLengthViaDataReductionProxy);
+ registry->RegisterListPref(prefs::kDailyContentLengthViaDataReductionProxy);
+ registry->RegisterInt64Pref(prefs::kDailyHttpContentLengthLastUpdateDate, 0L);
}
void RegisterSimpleProfilePrefs(PrefRegistrySimple* registry) {

Powered by Google App Engine
This is Rietveld 408576698