summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/engine/syncproto.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/sync/engine/syncproto.h')
-rw-r--r--chrome/browser/sync/engine/syncproto.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/sync/engine/syncproto.h b/chrome/browser/sync/engine/syncproto.h
index 1d5f428..ba087df 100644
--- a/chrome/browser/sync/engine/syncproto.h
+++ b/chrome/browser/sync/engine/syncproto.h
@@ -8,6 +8,7 @@
#define CHROME_BROWSER_SYNC_ENGINE_SYNCPROTO_H_
#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h"
+#include "chrome/browser/sync/protocol/preference_specifics.pb.h"
#include "chrome/browser/sync/protocol/sync.pb.h"
#include "chrome/browser/sync/syncable/model_type.h"
#include "chrome/browser/sync/syncable/syncable_id.h"
@@ -62,6 +63,9 @@ class SyncEntity : public IdWrapper<sync_pb::SyncEntity> {
if (specifics().HasExtension(sync_pb::bookmark) || has_bookmarkdata())
return syncable::BOOKMARKS;
+ if (specifics().HasExtension(sync_pb::preference))
+ return syncable::PREFERENCES;
+
// Loose check for server-created top-level folders that aren't
// bound to a particular model type.
if (!singleton_tag().empty() && IsFolder())