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

Unified Diff: sync/syncable/nigori_util.h

Issue 10827266: [Sync] Add SyncEncryptionHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. 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.h
diff --git a/sync/syncable/nigori_util.h b/sync/syncable/nigori_util.h
index 2edc9cdff5df98cc2f76cdf40daec429d501a7bd..65c51dedb1533bd44722bbfa1dfb4fecbed39839 100644
--- a/sync/syncable/nigori_util.h
+++ b/sync/syncable/nigori_util.h
@@ -68,6 +68,12 @@ bool UpdateEntryWithEncryption(
const sync_pb::EntitySpecifics& new_specifics,
MutableEntry* entry);
+// Updates |nigori| to match the encryption state specified by |encrypted_types|
+// and |encrypt_everything|.
+void UpdateNigoriFromEncryptedTypes(ModelTypeSet encrypted_types,
+ bool encrypt_everything,
+ sync_pb::NigoriSpecifics* nigori);
+
} // namespace syncable
} // namespace syncer

Powered by Google App Engine
This is Rietveld 408576698