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

Unified Diff: sync/syncable/syncable_base_transaction.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.cc ('k') | sync/syncable/syncable_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/syncable_base_transaction.cc
diff --git a/sync/syncable/syncable_base_transaction.cc b/sync/syncable/syncable_base_transaction.cc
index 8eb6d6bdf2d7d3709f0f56ee8f57b4c493f8e78e..c145c1f339c22b582e2a3d3a29f2b1fbf6de18a3 100644
--- a/sync/syncable/syncable_base_transaction.cc
+++ b/sync/syncable/syncable_base_transaction.cc
@@ -24,11 +24,11 @@ void BaseTransaction::Lock() {
"src_file", from_here_.file_name(),
"src_func", from_here_.function_name());
- directory_->kernel_->transaction_mutex.Acquire();
+ directory_->kernel()->transaction_mutex.Acquire();
}
void BaseTransaction::Unlock() {
- directory_->kernel_->transaction_mutex.Release();
+ directory_->kernel()->transaction_mutex.Release();
}
void BaseTransaction::OnUnrecoverableError(
« no previous file with comments | « sync/syncable/scoped_kernel_lock.cc ('k') | sync/syncable/syncable_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698