Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / sync / syncable / scoped_kernel_lock.cc
blob4a2742035feadc2d423922da7f482fde30b4f78e
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.
5 #include "sync/syncable/scoped_kernel_lock.h"
7 #include "sync/syncable/directory.h"
9 namespace syncer {
10 namespace syncable {
12 ScopedKernelLock::ScopedKernelLock(const Directory* dir)
13 : scoped_lock_(dir->kernel_->mutex), dir_(const_cast<Directory*>(dir)) {
16 ScopedKernelLock::~ScopedKernelLock() {}
18 } // namespace syncable
19 } // namespace syncer