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

Unified Diff: sync/syncable/model_type.cc

Issue 566623003: Refactor syncable DEVICE_INFO type from ChangeProcessor to SyncableService - part 3. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More CR feedback addressed in DeviceInfoSyncService. Created 6 years, 3 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 | « sync/internal_api/public/base/model_type.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/model_type.cc
diff --git a/sync/syncable/model_type.cc b/sync/syncable/model_type.cc
index 99ef39d8c01df50be4cd2e4947df523cc7027f5d..59be6f2de881fca8262d026febacd9ecc03dae3e 100644
--- a/sync/syncable/model_type.cc
+++ b/sync/syncable/model_type.cc
@@ -373,6 +373,9 @@ ModelTypeSet EncryptableUserTypes() {
// Synced Notification App Info does not have private data, so it is not
// encrypted.
encryptable_user_types.Remove(SYNCED_NOTIFICATION_APP_INFO);
+ // Device info data is not encrypted because it might be synced before
+ // encryption is ready.
+ encryptable_user_types.Remove(DEVICE_INFO);
// Priority preferences are not encrypted because they might be synced before
// encryption is ready.
encryptable_user_types.Remove(PRIORITY_PREFERENCES);
@@ -391,7 +394,7 @@ ModelTypeSet EncryptableUserTypes() {
}
ModelTypeSet PriorityUserTypes() {
- return ModelTypeSet(PRIORITY_PREFERENCES);
+ return ModelTypeSet(DEVICE_INFO, PRIORITY_PREFERENCES);
}
ModelTypeSet ControlTypes() {
« no previous file with comments | « sync/internal_api/public/base/model_type.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698