| Index: sync/test/fake_sync_encryption_handler.cc
|
| diff --git a/sync/test/fake_sync_encryption_handler.cc b/sync/test/fake_sync_encryption_handler.cc
|
| index fd41a5c0ba2d96549464e0613c3be01343844b8f..1dbdf8b75861c3fe6ad930af409cb9971622903f 100644
|
| --- a/sync/test/fake_sync_encryption_handler.cc
|
| +++ b/sync/test/fake_sync_encryption_handler.cc
|
| @@ -57,6 +57,25 @@ void FakeSyncEncryptionHandler::UpdateNigoriFromEncryptedTypes(
|
| nigori);
|
| }
|
|
|
| +bool FakeSyncEncryptionHandler::NeedKeystoreKey(
|
| + syncable::BaseTransaction* const trans) const {
|
| + return keystore_key_.empty();
|
| +}
|
| +
|
| +bool FakeSyncEncryptionHandler::SetKeystoreKey(
|
| + const std::string& key,
|
| + syncable::BaseTransaction* const trans) {
|
| + if (!keystore_key_.empty() || key.empty())
|
| + return false;
|
| + keystore_key_ = key;
|
| +
|
| + DVLOG(1) << "Keystore bootstrap token updated.";
|
| + FOR_EACH_OBSERVER(SyncEncryptionHandler::Observer, observers_,
|
| + OnBootstrapTokenUpdated(key,
|
| + KEYSTORE_BOOTSTRAP_TOKEN));
|
| + return true;
|
| +}
|
| +
|
| ModelTypeSet FakeSyncEncryptionHandler::GetEncryptedTypes(
|
| syncable::BaseTransaction* const trans) const {
|
| return encrypted_types_;
|
|
|