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

Unified Diff: components/sync/syncable/nigori_util.h

Issue 2278333002: Supplimentary identifier for passwords specific (Closed)
Patch Set: cleanup Created 4 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: components/sync/syncable/nigori_util.h
diff --git a/components/sync/syncable/nigori_util.h b/components/sync/syncable/nigori_util.h
index e8cf6706d80e9744ddd7bfa87259689dc1da9c9a..3d5d857b55a807d40ada90614ed1fb3f369ed8df 100644
--- a/components/sync/syncable/nigori_util.h
+++ b/components/sync/syncable/nigori_util.h
@@ -9,6 +9,7 @@
#include "base/compiler_specific.h"
#include "components/sync/base/model_type.h"
+#include "components/sync/base/passphrase_type.h"
#include "components/sync/protocol/nigori_specifics.pb.h"
namespace sync_pb {
@@ -61,6 +62,14 @@ bool UpdateEntryWithEncryption(BaseTransaction* const trans,
const sync_pb::EntitySpecifics& new_specifics,
MutableEntry* entry);
+// Same as |UpdateEntryWithEncryption|, but with explicit |passphrase_type|
+// which will be used to decide if the sensitive data should be removed before
+// re-enctypting.
+bool UpdateEntryWithEncryption(BaseTransaction* const trans,
+ const sync_pb::EntitySpecifics& new_specifics,
+ MutableEntry* entry,
+ PassphraseType passphrase_type);
+
// Updates |nigori| to match the encryption state specified by |encrypted_types|
// and |encrypt_everything|.
void UpdateNigoriFromEncryptedTypes(ModelTypeSet encrypted_types,

Powered by Google App Engine
This is Rietveld 408576698