1// Copyright 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "sync/syncable/scoped_kernel_lock.h"
6
7#include "sync/syncable/directory.h"
8
9namespace syncer {
10namespace syncable {
11
12ScopedKernelLock::ScopedKernelLock(const Directory* dir)
13  :  scoped_lock_(dir->kernel_->mutex), dir_(const_cast<Directory*>(dir)) {
14}
15
16ScopedKernelLock::~ScopedKernelLock() {}
17
18}  // namespace syncable
19}  // namespace syncer
20