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

Unified Diff: chrome/browser/prefs/pref_service_syncable.cc

Issue 11636018: Remove PrefValueStore's dependency on PrefModelAssociator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix DEPS Created 8 years 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
« no previous file with comments | « chrome/browser/prefs/DEPS ('k') | chrome/browser/prefs/pref_value_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/pref_service_syncable.cc
diff --git a/chrome/browser/prefs/pref_service_syncable.cc b/chrome/browser/prefs/pref_service_syncable.cc
index 7cf7874d4d26deab5cc0c68b2d77da89ec71efe2..46a35176540a910239a6278a956b6a9e0f60dc47 100644
--- a/chrome/browser/prefs/pref_service_syncable.cc
+++ b/chrome/browser/prefs/pref_service_syncable.cc
@@ -78,7 +78,10 @@ PrefServiceSyncable::PrefServiceSyncable(
read_error_callback,
async) {
pref_sync_associator_.SetPrefService(this);
- pref_value_store->set_sync_associator(&pref_sync_associator_);
+
+ pref_value_store->set_callback(
+ base::Bind(&PrefModelAssociator::ProcessPrefChange,
+ base::Unretained(&pref_sync_associator_)));
}
PrefServiceSyncable::~PrefServiceSyncable() {}
« no previous file with comments | « chrome/browser/prefs/DEPS ('k') | chrome/browser/prefs/pref_value_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698