OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/syncable_prefs/pref_service_syncable.h" | 5 #include "components/syncable_prefs/pref_service_syncable.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/prefs/default_pref_store.h" | |
11 #include "base/prefs/overlay_user_pref_store.h" | |
12 #include "base/prefs/pref_notifier_impl.h" | |
13 #include "base/prefs/pref_registry.h" | |
14 #include "base/prefs/pref_value_store.h" | |
15 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
16 #include "base/value_conversions.h" | 11 #include "base/value_conversions.h" |
17 #include "components/pref_registry/pref_registry_syncable.h" | 12 #include "components/pref_registry/pref_registry_syncable.h" |
| 13 #include "components/prefs/default_pref_store.h" |
| 14 #include "components/prefs/overlay_user_pref_store.h" |
| 15 #include "components/prefs/pref_notifier_impl.h" |
| 16 #include "components/prefs/pref_registry.h" |
| 17 #include "components/prefs/pref_value_store.h" |
18 #include "components/syncable_prefs/pref_model_associator.h" | 18 #include "components/syncable_prefs/pref_model_associator.h" |
19 #include "components/syncable_prefs/pref_service_syncable_observer.h" | 19 #include "components/syncable_prefs/pref_service_syncable_observer.h" |
20 | 20 |
21 namespace syncable_prefs { | 21 namespace syncable_prefs { |
22 | 22 |
23 PrefServiceSyncable::PrefServiceSyncable( | 23 PrefServiceSyncable::PrefServiceSyncable( |
24 PrefNotifierImpl* pref_notifier, | 24 PrefNotifierImpl* pref_notifier, |
25 PrefValueStore* pref_value_store, | 25 PrefValueStore* pref_value_store, |
26 PersistentPrefStore* user_prefs, | 26 PersistentPrefStore* user_prefs, |
27 user_prefs::PrefRegistrySyncable* pref_registry, | 27 user_prefs::PrefRegistrySyncable* pref_registry, |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 FOR_EACH_OBSERVER(PrefServiceSyncableObserver, observer_list_, | 177 FOR_EACH_OBSERVER(PrefServiceSyncableObserver, observer_list_, |
178 OnIsSyncingChanged()); | 178 OnIsSyncingChanged()); |
179 } | 179 } |
180 | 180 |
181 void PrefServiceSyncable::ProcessPrefChange(const std::string& name) { | 181 void PrefServiceSyncable::ProcessPrefChange(const std::string& name) { |
182 pref_sync_associator_.ProcessPrefChange(name); | 182 pref_sync_associator_.ProcessPrefChange(name); |
183 priority_pref_sync_associator_.ProcessPrefChange(name); | 183 priority_pref_sync_associator_.ProcessPrefChange(name); |
184 } | 184 } |
185 | 185 |
186 } // namespace syncable_prefs | 186 } // namespace syncable_prefs |
OLD | NEW |