| Index: chrome/browser/sync/engine/base_transaction.cc
|
| diff --git a/chrome/browser/sync/engine/base_transaction.cc b/chrome/browser/sync/engine/base_transaction.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..02d493c4ea8a66633c9e4e21c0c9ab170c7c926a
|
| --- /dev/null
|
| +++ b/chrome/browser/sync/engine/base_transaction.cc
|
| @@ -0,0 +1,26 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "base_transaction.h"
|
| +
|
| +#include "chrome/browser/sync/syncable/directory_manager.h"
|
| +
|
| +namespace sync_api {
|
| +
|
| +//////////////////////////////////////////////////////////////////////////
|
| +// BaseTransaction member definitions
|
| +BaseTransaction::BaseTransaction(UserShare* share)
|
| + : lookup_(NULL) {
|
| + DCHECK(share && share->dir_manager.get());
|
| + lookup_ = new syncable::ScopedDirLookup(share->dir_manager.get(),
|
| + share->name);
|
| + cryptographer_ = share->dir_manager->GetCryptographer(this);
|
| + if (!(lookup_->good()))
|
| + DCHECK(false) << "ScopedDirLookup failed on valid DirManager.";
|
| +}
|
| +BaseTransaction::~BaseTransaction() {
|
| + delete lookup_;
|
| +}
|
| +
|
| +} // namespace sync_api
|
|
|