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

Side by Side Diff: components/syncable_prefs/pref_service_syncable.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
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" 10 #include "base/prefs/default_pref_store.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 void PrefServiceSyncable::SetPrefModelAssociatorClientForTesting( 157 void PrefServiceSyncable::SetPrefModelAssociatorClientForTesting(
158 const PrefModelAssociatorClient* pref_model_associator_client) { 158 const PrefModelAssociatorClient* pref_model_associator_client) {
159 pref_sync_associator_.SetPrefModelAssociatorClientForTesting( 159 pref_sync_associator_.SetPrefModelAssociatorClientForTesting(
160 pref_model_associator_client); 160 pref_model_associator_client);
161 priority_pref_sync_associator_.SetPrefModelAssociatorClientForTesting( 161 priority_pref_sync_associator_.SetPrefModelAssociatorClientForTesting(
162 pref_model_associator_client); 162 pref_model_associator_client);
163 } 163 }
164 164
165 void PrefServiceSyncable::AddRegisteredSyncablePreference( 165 void PrefServiceSyncable::AddRegisteredSyncablePreference(
166 const std::string& path, 166 const std::string& path,
167 uint32 flags) { 167 uint32_t flags) {
168 DCHECK(FindPreference(path)); 168 DCHECK(FindPreference(path));
169 if (flags & user_prefs::PrefRegistrySyncable::SYNCABLE_PREF) { 169 if (flags & user_prefs::PrefRegistrySyncable::SYNCABLE_PREF) {
170 pref_sync_associator_.RegisterPref(path.c_str()); 170 pref_sync_associator_.RegisterPref(path.c_str());
171 } else if (flags & user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF) { 171 } else if (flags & user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF) {
172 priority_pref_sync_associator_.RegisterPref(path.c_str()); 172 priority_pref_sync_associator_.RegisterPref(path.c_str());
173 } 173 }
174 } 174 }
175 175
176 void PrefServiceSyncable::OnIsSyncingChanged() { 176 void PrefServiceSyncable::OnIsSyncingChanged() {
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
OLDNEW
« no previous file with comments | « components/syncable_prefs/pref_service_syncable.h ('k') | components/syncable_prefs/pref_service_syncable_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698