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

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: another rebase 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: 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 e811f3a493bab694835c92d8f580318aebbdefa0..3ecc42e9d8baae146170476fd1bae10fadcbb273 100644
--- a/sync/internal_api/public/base/model_type.h
+++ b/sync/internal_api/public/base/model_type.h
@@ -90,7 +90,10 @@ enum ModelType {
FAVICON_IMAGES,
// Favicon tracking information.
FAVICON_TRACKING,
- LAST_USER_MODEL_TYPE = FAVICON_TRACKING,
+ // These preferences are synced before other user types and are never
+ // encrypted.
+ PRIORITY_PREFERENCES,
+ LAST_USER_MODEL_TYPE = PRIORITY_PREFERENCES,
// An object representing a set of Nigori keys.
NIGORI,
@@ -99,10 +102,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,
@@ -165,6 +165,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.

Powered by Google App Engine
This is Rietveld 408576698