| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/data_reduction_proxy/browser/data_reduction_proxy_prefs.h" | 5 #include "components/data_reduction_proxy/browser/data_reduction_proxy_prefs.h" |
| 6 | 6 |
| 7 #include "base/prefs/pref_registry_simple.h" | 7 #include "base/prefs/pref_registry_simple.h" |
| 8 #include "components/data_reduction_proxy/common/data_reduction_proxy_pref_names
.h" | 8 #include "components/data_reduction_proxy/common/data_reduction_proxy_pref_names
.h" |
| 9 #include "components/pref_registry/pref_registry_syncable.h" | 9 #include "components/pref_registry/pref_registry_syncable.h" |
| 10 | 10 |
| 11 namespace data_reduction_proxy { | 11 namespace data_reduction_proxy { |
| 12 | 12 |
| 13 void RegisterSyncableProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { | 13 void RegisterSyncableProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { |
| 14 registry->RegisterBooleanPref( | 14 registry->RegisterBooleanPref( |
| 15 data_reduction_proxy::prefs::kDataReductionProxyEnabled, | 15 data_reduction_proxy::prefs::kDataReductionProxyEnabled, |
| 16 false, | 16 false, |
| 17 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 17 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 18 registry->RegisterBooleanPref( | 18 registry->RegisterBooleanPref( |
| 19 data_reduction_proxy::prefs::kDataReductionProxyAltEnabled, | |
| 20 false, | |
| 21 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
| 22 registry->RegisterBooleanPref( | |
| 23 data_reduction_proxy::prefs::kDataReductionProxyWasEnabledBefore, | 19 data_reduction_proxy::prefs::kDataReductionProxyWasEnabledBefore, |
| 24 false, | 20 false, |
| 25 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 21 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 26 } | 22 } |
| 27 | 23 |
| 28 void RegisterSimpleProfilePrefs(PrefRegistrySimple* registry) { | 24 void RegisterSimpleProfilePrefs(PrefRegistrySimple* registry) { |
| 29 registry->RegisterBooleanPref( | 25 registry->RegisterBooleanPref( |
| 30 data_reduction_proxy::prefs::kDataReductionProxyEnabled, | 26 data_reduction_proxy::prefs::kDataReductionProxyEnabled, |
| 31 false); | 27 false); |
| 32 registry->RegisterBooleanPref( | 28 registry->RegisterBooleanPref( |
| (...skipping 24 matching lines...) Expand all Loading... |
| 57 prefs::kDailyContentLengthUnknownWithDataReductionProxyEnabled); | 53 prefs::kDailyContentLengthUnknownWithDataReductionProxyEnabled); |
| 58 registry->RegisterListPref( | 54 registry->RegisterListPref( |
| 59 prefs::kDailyOriginalContentLengthViaDataReductionProxy); | 55 prefs::kDailyOriginalContentLengthViaDataReductionProxy); |
| 60 registry->RegisterListPref( | 56 registry->RegisterListPref( |
| 61 prefs::kDailyContentLengthViaDataReductionProxy); | 57 prefs::kDailyContentLengthViaDataReductionProxy); |
| 62 registry->RegisterInt64Pref( | 58 registry->RegisterInt64Pref( |
| 63 prefs::kDailyHttpContentLengthLastUpdateDate, 0L); | 59 prefs::kDailyHttpContentLengthLastUpdateDate, 0L); |
| 64 } | 60 } |
| 65 | 61 |
| 66 } // namespace data_reduction_proxy | 62 } // namespace data_reduction_proxy |
| OLD | NEW |