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

Side by Side Diff: components/data_reduction_proxy/browser/data_reduction_proxy_prefs.cc

Issue 271793003: components: Extract pref_registry component out of user_prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/data_reduction_proxy/DEPS ('k') | components/keyed_service/content/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/user_prefs/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::kDataReductionProxyWasEnabledBefore, 19 data_reduction_proxy::prefs::kDataReductionProxyWasEnabledBefore,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 prefs::kDailyContentLengthUnknownWithDataReductionProxyEnabled); 53 prefs::kDailyContentLengthUnknownWithDataReductionProxyEnabled);
54 registry->RegisterListPref( 54 registry->RegisterListPref(
55 prefs::kDailyOriginalContentLengthViaDataReductionProxy); 55 prefs::kDailyOriginalContentLengthViaDataReductionProxy);
56 registry->RegisterListPref( 56 registry->RegisterListPref(
57 prefs::kDailyContentLengthViaDataReductionProxy); 57 prefs::kDailyContentLengthViaDataReductionProxy);
58 registry->RegisterInt64Pref( 58 registry->RegisterInt64Pref(
59 prefs::kDailyHttpContentLengthLastUpdateDate, 0L); 59 prefs::kDailyHttpContentLengthLastUpdateDate, 0L);
60 } 60 }
61 61
62 } // namespace data_reduction_proxy 62 } // namespace data_reduction_proxy
OLDNEW
« no previous file with comments | « components/data_reduction_proxy/DEPS ('k') | components/keyed_service/content/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698