Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Unified Diff: sync/syncable/scoped_kernel_lock.cc

Issue 1057663002: [Sync] Eliminate friends from Directory by exposing kernel via accessor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes from review. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/syncable/scoped_kernel_lock.h ('k') | sync/syncable/syncable_base_transaction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/scoped_kernel_lock.cc
diff --git a/sync/syncable/scoped_kernel_lock.cc b/sync/syncable/scoped_kernel_lock.cc
index 4a2742035feadc2d423922da7f482fde30b4f78e..a2d75729249fb4e0d09e4750f30e60d4219d4b35 100644
--- a/sync/syncable/scoped_kernel_lock.cc
+++ b/sync/syncable/scoped_kernel_lock.cc
@@ -10,7 +10,7 @@ namespace syncer {
namespace syncable {
ScopedKernelLock::ScopedKernelLock(const Directory* dir)
- : scoped_lock_(dir->kernel_->mutex), dir_(const_cast<Directory*>(dir)) {
+ : scoped_lock_(dir->kernel()->mutex), dir_(dir) {
}
ScopedKernelLock::~ScopedKernelLock() {}
« no previous file with comments | « sync/syncable/scoped_kernel_lock.h ('k') | sync/syncable/syncable_base_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698