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( |
19 data_reduction_proxy::prefs::kDataReductionProxyWasEnabledBefore, | 23 data_reduction_proxy::prefs::kDataReductionProxyWasEnabledBefore, |
20 false, | 24 false, |
21 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 25 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
22 } | 26 } |
23 | 27 |
24 void RegisterSimpleProfilePrefs(PrefRegistrySimple* registry) { | 28 void RegisterSimpleProfilePrefs(PrefRegistrySimple* registry) { |
25 registry->RegisterBooleanPref( | 29 registry->RegisterBooleanPref( |
26 data_reduction_proxy::prefs::kDataReductionProxyEnabled, | 30 data_reduction_proxy::prefs::kDataReductionProxyEnabled, |
27 false); | 31 false); |
28 registry->RegisterBooleanPref( | 32 registry->RegisterBooleanPref( |
(...skipping 24 matching lines...) Expand all Loading... |
53 prefs::kDailyContentLengthUnknownWithDataReductionProxyEnabled); | 57 prefs::kDailyContentLengthUnknownWithDataReductionProxyEnabled); |
54 registry->RegisterListPref( | 58 registry->RegisterListPref( |
55 prefs::kDailyOriginalContentLengthViaDataReductionProxy); | 59 prefs::kDailyOriginalContentLengthViaDataReductionProxy); |
56 registry->RegisterListPref( | 60 registry->RegisterListPref( |
57 prefs::kDailyContentLengthViaDataReductionProxy); | 61 prefs::kDailyContentLengthViaDataReductionProxy); |
58 registry->RegisterInt64Pref( | 62 registry->RegisterInt64Pref( |
59 prefs::kDailyHttpContentLengthLastUpdateDate, 0L); | 63 prefs::kDailyHttpContentLengthLastUpdateDate, 0L); |
60 } | 64 } |
61 | 65 |
62 } // namespace data_reduction_proxy | 66 } // namespace data_reduction_proxy |
OLD | NEW |