| Index: components/sync/core/base_transaction.cc
|
| diff --git a/components/sync/core/base_transaction.cc b/components/sync/core/base_transaction.cc
|
| index ca61433b5c0ac49182e81559c2404d949f59b7f7..dcf7e0dd9d3048b832dbd5124ea55e7c4409a54a 100644
|
| --- a/components/sync/core/base_transaction.cc
|
| +++ b/components/sync/core/base_transaction.cc
|
| @@ -5,6 +5,7 @@
|
| #include "components/sync/core/base_transaction.h"
|
|
|
| #include "components/sync/base/cryptographer.h"
|
| +#include "components/sync/base/passphrase_type.h"
|
| #include "components/sync/syncable/directory.h"
|
| #include "components/sync/syncable/nigori_handler.h"
|
|
|
| @@ -29,4 +30,12 @@ ModelTypeSet BaseTransaction::GetEncryptedTypes() const {
|
| : ModelTypeSet();
|
| }
|
|
|
| +PassphraseType BaseTransaction::GetPassphraseType() const {
|
| + syncable::NigoriHandler* nigori_handler = GetDirectory()->GetNigoriHandler();
|
| + return nigori_handler
|
| + ? nigori_handler->GetPassphraseType(this->GetWrappedTrans())
|
| + : syncer::PassphraseType::UNDEFINED;
|
| +}
|
| +
|
| +
|
| } // namespace syncer
|
|
|