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

Unified Diff: chrome/browser/prefs/pref_model_associator.h

Issue 8568019: Introduce per-tab preferences service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Single PrefService constructor Created 9 years, 1 month 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: chrome/browser/prefs/pref_model_associator.h
diff --git a/chrome/browser/prefs/pref_model_associator.h b/chrome/browser/prefs/pref_model_associator.h
index 5e2189cfc375486907207b86f9cb3d8ccb15b722..cf1dd77456d653841425c69c34b5c3dc034af242 100644
--- a/chrome/browser/prefs/pref_model_associator.h
+++ b/chrome/browser/prefs/pref_model_associator.h
@@ -32,7 +32,7 @@ class PrefModelAssociator
: public SyncableService,
public base::NonThreadSafe {
public:
- explicit PrefModelAssociator(PrefService* pref_service);
+ PrefModelAssociator();
virtual ~PrefModelAssociator();
// SyncableService implementation.
@@ -64,6 +64,8 @@ class PrefModelAssociator
// sent to the syncer.
virtual void ProcessPrefChange(const std::string& name);
+ void SetPrefService(PrefService* pref_service);
+
// Merges the value of local_pref into the supplied server_value and returns
// the result (caller takes ownership). If there is a conflict, the server
// value always takes precedence. Note that only certain preferences will
@@ -89,9 +91,6 @@ class PrefModelAssociator
typedef std::map<std::string, SyncData> SyncDataMap;
- // For testing.
- PrefModelAssociator();
-
// Create an association for a given preference. If |sync_pref| is valid,
// signifying that sync has data for this preference, we reconcile their data
// with ours and append a new UPDATE SyncChange to |sync_changes|. If

Powered by Google App Engine
This is Rietveld 408576698