Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: components/syncable_prefs/

Issue 2078893002: Add callback list to PrefModelAssociator after sync data is loaded (Closed) Base URL:
Patch Set: minor change Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: components/syncable_prefs/
diff --git a/components/syncable_prefs/ b/components/syncable_prefs/
index c656381877d93ecb1b7b2fe9de01a346014ecac8..41fe2961741b19c9440259a897f24452f3a243be 100644
--- a/components/syncable_prefs/
+++ b/components/syncable_prefs/
@@ -153,6 +153,11 @@ void PrefServiceSyncable::RemoveSyncedPrefObserver(
priority_pref_sync_associator_.RemoveSyncedPrefObserver(name, observer);
+void PrefServiceSyncable::RegisterMergeDataFinishedCallback(
+ const base::Closure& callback) {
+ pref_sync_associator_.RegisterMergeDataFinishedCallback(callback);
// Set the PrefModelAssociatorClient to use for that object during tests.
void PrefServiceSyncable::SetPrefModelAssociatorClientForTesting(
const PrefModelAssociatorClient* pref_model_associator_client) {
« no previous file with comments | « components/syncable_prefs/pref_service_syncable.h ('k') | components/syncable_prefs/ » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698