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

Unified Diff: sync/syncable/nigori_util.cc

Issue 10825137: FYI: Control Data + Per-Device Metadata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add PER_USER_METADATA, refactor some encryption code Created 8 years, 4 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/syncable/nigori_util.cc
diff --git a/sync/syncable/nigori_util.cc b/sync/syncable/nigori_util.cc
index 32a5fcfcbf4373e873bbb1976d27f23558b4f895..4954e00ce44562342f37cd4fb7529d1fb3ed0f18 100644
--- a/sync/syncable/nigori_util.cc
+++ b/sync/syncable/nigori_util.cc
@@ -85,8 +85,10 @@ bool SpecificsNeedsEncryption(ModelTypeSet encrypted_types,
const ModelType type = GetModelTypeFromSpecifics(specifics);
if (type == PASSWORDS || type == NIGORI)
return false; // These types have their own encryption schemes.
+ if (!syncer::EncryptableTypes().Has(type))
rlarocque 2012/08/11 01:31:52 This is a new concept that I'm introducing. We al
+ return false; // These types can never be encrypted.
if (!encrypted_types.Has(type))
- return false; // This type does not require encryption
+ return false; // This type does not require encryption.
return !specifics.has_encrypted();
}

Powered by Google App Engine
This is Rietveld 408576698