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

Unified Diff: chrome/browser/sync/invalidations/invalidator_storage.h

Issue 12079097: Introduce PrefRegistrySyncable, simplifying PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add to PrefRegistrySyncable and PrefServiceSyncable to let sync know of pre-registered prefs. Created 7 years, 10 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: chrome/browser/sync/invalidations/invalidator_storage.h
diff --git a/chrome/browser/sync/invalidations/invalidator_storage.h b/chrome/browser/sync/invalidations/invalidator_storage.h
index 12e67ae89f9f9ca3094c20ae38f8f1f817474678..d5e5df3945aa16e6ee65ea8709d1be675456e80d 100644
--- a/chrome/browser/sync/invalidations/invalidator_storage.h
+++ b/chrome/browser/sync/invalidations/invalidator_storage.h
@@ -15,7 +15,8 @@
#include "base/threading/thread_checker.h"
#include "sync/notifier/invalidation_state_tracker.h"
-class PrefServiceSyncable;
+class PrefService;
+class PrefRegistrySyncable;
namespace base {
class DictionaryValue;
@@ -34,7 +35,8 @@ class InvalidatorStorage : public base::SupportsWeakPtr<InvalidatorStorage>,
public:
// |pref_service| may be NULL (for unit tests), but in that case no setter
// methods should be called. Does not own |pref_service|.
- explicit InvalidatorStorage(PrefServiceSyncable* pref_service);
+ explicit InvalidatorStorage(PrefService* pref_service,
+ PrefRegistrySyncable* registry);
virtual ~InvalidatorStorage();
// Erases invalidation versions and state stored on disk.
@@ -88,12 +90,12 @@ class InvalidatorStorage : public base::SupportsWeakPtr<InvalidatorStorage>,
// Code for migrating from old MaxInvalidationVersions pref, which was a map
// from sync types to max invalidation versions.
- void MigrateMaxInvalidationVersionsPref();
+ void MigrateMaxInvalidationVersionsPref(PrefRegistrySyncable* registry);
static void DeserializeMap(const base::DictionaryValue* max_versions_dict,
syncer::InvalidationStateMap* map);
// May be NULL.
- PrefServiceSyncable* const pref_service_;
+ PrefService* const pref_service_;
DISALLOW_COPY_AND_ASSIGN(InvalidatorStorage);
};

Powered by Google App Engine
This is Rietveld 408576698