Home | History | Annotate | Download | only in syncable
      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 
      9 namespace syncer {
     10 namespace syncable {
     11 
     12 ScopedKernelLock::ScopedKernelLock(const Directory* dir)
     13   :  scoped_lock_(dir->kernel_->mutex), dir_(const_cast<Directory*>(dir)) {
     14 }
     15 
     16 ScopedKernelLock::~ScopedKernelLock() {}
     17 
     18 }  // namespace syncable
     19 }  // namespace syncer
     20