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 "chrome/browser/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" | 10 #include "base/prefs/default_pref_store.h" |
11 #include "base/prefs/overlay_user_pref_store.h" | 11 #include "base/prefs/overlay_user_pref_store.h" |
12 #include "base/prefs/pref_notifier_impl.h" | 12 #include "base/prefs/pref_notifier_impl.h" |
13 #include "base/prefs/pref_registry.h" | 13 #include "base/prefs/pref_registry.h" |
14 #include "base/prefs/pref_value_store.h" | 14 #include "base/prefs/pref_value_store.h" |
15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
16 #include "base/value_conversions.h" | 16 #include "base/value_conversions.h" |
17 #include "chrome/browser/prefs/pref_model_associator.h" | |
18 #include "chrome/browser/prefs/pref_service_syncable_observer.h" | |
19 #include "components/pref_registry/pref_registry_syncable.h" | 17 #include "components/pref_registry/pref_registry_syncable.h" |
| 18 #include "components/syncable_prefs/pref_model_associator.h" |
| 19 #include "components/syncable_prefs/pref_service_syncable_observer.h" |
20 | 20 |
21 PrefServiceSyncable::PrefServiceSyncable( | 21 PrefServiceSyncable::PrefServiceSyncable( |
22 PrefNotifierImpl* pref_notifier, | 22 PrefNotifierImpl* pref_notifier, |
23 PrefValueStore* pref_value_store, | 23 PrefValueStore* pref_value_store, |
24 PersistentPrefStore* user_prefs, | 24 PersistentPrefStore* user_prefs, |
25 user_prefs::PrefRegistrySyncable* pref_registry, | 25 user_prefs::PrefRegistrySyncable* pref_registry, |
26 const PrefModelAssociatorClient* pref_model_associator_client, | 26 const PrefModelAssociatorClient* pref_model_associator_client, |
27 base::Callback<void(PersistentPrefStore::PrefReadError)> | 27 base::Callback<void(PersistentPrefStore::PrefReadError)> |
28 read_error_callback, | 28 read_error_callback, |
29 bool async) | 29 bool async) |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 173 |
174 void PrefServiceSyncable::OnIsSyncingChanged() { | 174 void PrefServiceSyncable::OnIsSyncingChanged() { |
175 FOR_EACH_OBSERVER(PrefServiceSyncableObserver, observer_list_, | 175 FOR_EACH_OBSERVER(PrefServiceSyncableObserver, observer_list_, |
176 OnIsSyncingChanged()); | 176 OnIsSyncingChanged()); |
177 } | 177 } |
178 | 178 |
179 void PrefServiceSyncable::ProcessPrefChange(const std::string& name) { | 179 void PrefServiceSyncable::ProcessPrefChange(const std::string& name) { |
180 pref_sync_associator_.ProcessPrefChange(name); | 180 pref_sync_associator_.ProcessPrefChange(name); |
181 priority_pref_sync_associator_.ProcessPrefChange(name); | 181 priority_pref_sync_associator_.ProcessPrefChange(name); |
182 } | 182 } |
OLD | NEW |