| 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/test/fake_sync_encryption_handler.h" | 5 #include "components/sync/test/fake_sync_encryption_handler.h" |
| 6 | 6 |
| 7 #include "components/sync/base/passphrase_type.h" | 7 #include "components/sync/base/passphrase_type.h" |
| 8 #include "components/sync/protocol/nigori_specifics.pb.h" | 8 #include "components/sync/protocol/nigori_specifics.pb.h" |
| 9 #include "components/sync/syncable/nigori_util.h" | 9 #include "components/sync/syncable/nigori_util.h" |
| 10 | 10 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 encrypted_types_ = ModelTypeSet::All(); | 112 encrypted_types_ = ModelTypeSet::All(); |
| 113 FOR_EACH_OBSERVER( | 113 FOR_EACH_OBSERVER( |
| 114 Observer, observers_, | 114 Observer, observers_, |
| 115 OnEncryptedTypesChanged(encrypted_types_, encrypt_everything_)); | 115 OnEncryptedTypesChanged(encrypted_types_, encrypt_everything_)); |
| 116 } | 116 } |
| 117 | 117 |
| 118 bool FakeSyncEncryptionHandler::IsEncryptEverythingEnabled() const { | 118 bool FakeSyncEncryptionHandler::IsEncryptEverythingEnabled() const { |
| 119 return encrypt_everything_; | 119 return encrypt_everything_; |
| 120 } | 120 } |
| 121 | 121 |
| 122 PassphraseType FakeSyncEncryptionHandler::GetPassphraseType() const { | 122 PassphraseType FakeSyncEncryptionHandler::GetPassphraseType( |
| 123 syncable::BaseTransaction* const trans) const { |
| 123 return passphrase_type_; | 124 return passphrase_type_; |
| 124 } | 125 } |
| 125 | 126 |
| 126 } // namespace syncer | 127 } // namespace syncer |
| OLD | NEW |