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

Unified Diff: sync/internal_api/public/base/model_type.h

Issue 12033093: sync: Implementation of Priority Preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 7 years, 9 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
« no previous file with comments | « components/user_prefs/pref_registry_syncable.cc ('k') | sync/protocol/priority_preference_specifics.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/public/base/model_type.h
diff --git a/sync/internal_api/public/base/model_type.h b/sync/internal_api/public/base/model_type.h
index ebf76653f2241a471d676df8f362387fdb74b810..92df11666f4a0ae33420df96889d16bfbceea620 100644
--- a/sync/internal_api/public/base/model_type.h
+++ b/sync/internal_api/public/base/model_type.h
@@ -90,6 +90,9 @@ enum ModelType {
FAVICON_IMAGES,
// Favicon tracking information.
FAVICON_TRACKING,
+ // These preferences are synced before other user types and are never
+ // encrypted.
+ PRIORITY_PREFERENCES,
// ---- Proxy types ----
// Proxy types are excluded from the sync protocol, but are still considered
@@ -113,10 +116,7 @@ enum ModelType {
DEVICE_INFO,
// Flags to enable experimental features.
EXPERIMENTS,
- // These preferences are never encrypted so that they can be applied before
- // the encryption system is fully initialized.
- PRIORITY_PREFERENCES,
- LAST_CONTROL_MODEL_TYPE = PRIORITY_PREFERENCES,
+ LAST_CONTROL_MODEL_TYPE = EXPERIMENTS,
LAST_REAL_MODEL_TYPE = LAST_CONTROL_MODEL_TYPE,
@@ -179,6 +179,10 @@ SYNC_EXPORT bool IsUserSelectableType(ModelType model_type);
// This is the subset of UserTypes() that can be encrypted.
SYNC_EXPORT_PRIVATE ModelTypeSet EncryptableUserTypes();
+// This is the subset of UserTypes() that have priority over other types. These
+// types are synced before other user types and are never encrypted.
+SYNC_EXPORT ModelTypeSet PriorityUserTypes();
+
// Proxy types are placeholder types for handling implicitly enabling real
// types. They do not exist at the server, and are simply used for
// UI/Configuration logic.
« no previous file with comments | « components/user_prefs/pref_registry_syncable.cc ('k') | sync/protocol/priority_preference_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698