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

Unified Diff: components/sync/syncable/base_transaction.cc

Issue 2294913009: Fill the un-encrypted metadata field in password specifics. (Closed)
Patch Set: rebased Created 4 years, 2 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 | « components/sync/syncable/base_transaction.h ('k') | components/sync/syncable/write_node.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/syncable/base_transaction.cc
diff --git a/components/sync/syncable/base_transaction.cc b/components/sync/syncable/base_transaction.cc
index bdac744a43f7f0a07cf9ec0af77db88bbafe4ecc..22449039bd06f85500eeca2b9e4f72a80442d60e 100644
--- a/components/sync/syncable/base_transaction.cc
+++ b/components/sync/syncable/base_transaction.cc
@@ -28,4 +28,11 @@ ModelTypeSet BaseTransaction::GetEncryptedTypes() const {
: ModelTypeSet();
}
+PassphraseType BaseTransaction::GetPassphraseType() const {
+ syncable::NigoriHandler* nigori_handler = GetDirectory()->GetNigoriHandler();
+ return nigori_handler
+ ? nigori_handler->GetPassphraseType(this->GetWrappedTrans())
+ : PassphraseType::IMPLICIT_PASSPHRASE;
+}
+
} // namespace syncer
« no previous file with comments | « components/sync/syncable/base_transaction.h ('k') | components/sync/syncable/write_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698