| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/sync/core/base_transaction.h" | 5 #include "components/sync/core/base_transaction.h" |
| 6 | 6 |
| 7 #include "components/sync/base/cryptographer.h" | 7 #include "components/sync/base/cryptographer.h" |
| 8 #include "components/sync/syncable/directory.h" | 8 #include "components/sync/syncable/directory.h" |
| 9 #include "components/sync/syncable/nigori_handler.h" | 9 #include "components/sync/syncable/nigori_handler.h" |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 return GetDirectory()->GetCryptographer(this->GetWrappedTrans()); | 22 return GetDirectory()->GetCryptographer(this->GetWrappedTrans()); |
| 23 } | 23 } |
| 24 | 24 |
| 25 ModelTypeSet BaseTransaction::GetEncryptedTypes() const { | 25 ModelTypeSet BaseTransaction::GetEncryptedTypes() const { |
| 26 syncable::NigoriHandler* nigori_handler = GetDirectory()->GetNigoriHandler(); | 26 syncable::NigoriHandler* nigori_handler = GetDirectory()->GetNigoriHandler(); |
| 27 return nigori_handler | 27 return nigori_handler |
| 28 ? nigori_handler->GetEncryptedTypes(this->GetWrappedTrans()) | 28 ? nigori_handler->GetEncryptedTypes(this->GetWrappedTrans()) |
| 29 : ModelTypeSet(); | 29 : ModelTypeSet(); |
| 30 } | 30 } |
| 31 | 31 |
| 32 PassphraseType BaseTransaction::GetPassphraseType() const { |
| 33 syncable::NigoriHandler* nigori_handler = GetDirectory()->GetNigoriHandler(); |
| 34 return nigori_handler |
| 35 ? nigori_handler->GetPassphraseType(this->GetWrappedTrans()) |
| 36 : PassphraseType::IMPLICIT_PASSPHRASE; |
| 37 } |
| 38 |
| 32 } // namespace syncer | 39 } // namespace syncer |
| OLD | NEW |