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

Unified Diff: chrome/browser/sync/syncable/syncable.h

Issue 6142009: Upating the app, ceee, chrome, ipc, media, and net directories to use the correct lock.h file. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Unified patch updating all references to the new base/synchronization/lock.h Created 9 years, 11 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 | « chrome/browser/sync/syncable/directory_manager.cc ('k') | chrome/browser/sync/syncable/syncable.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/syncable/syncable.h
diff --git a/chrome/browser/sync/syncable/syncable.h b/chrome/browser/sync/syncable/syncable.h
index cccf4170e9fed440cd616badb6089abd6455138a..e9ce22f9480b5235285a0847aff025f6965c2753 100644
--- a/chrome/browser/sync/syncable/syncable.h
+++ b/chrome/browser/sync/syncable/syncable.h
@@ -18,7 +18,7 @@
#include "base/basictypes.h"
#include "base/file_path.h"
#include "base/gtest_prod_util.h"
-#include "base/lock.h"
+#include "base/synchronization/lock.h"
#include "base/time.h"
#include "chrome/browser/sync/protocol/sync.pb.h"
#include "chrome/browser/sync/syncable/autofill_migration.h"
@@ -827,7 +827,7 @@ class Directory {
}
};
public:
- typedef EventChannel<DirectoryEventTraits, Lock> Channel;
+ typedef EventChannel<DirectoryEventTraits, base::Lock> Channel;
typedef std::vector<int64> ChildHandles;
// Returns the child meta handles for given parent id.
@@ -981,7 +981,7 @@ class Directory {
volatile base::subtle::AtomicWord refcount;
// Implements ReadTransaction / WriteTransaction using a simple lock.
- Lock transaction_mutex;
+ base::Lock transaction_mutex;
// The name of this directory.
std::string const name;
@@ -993,7 +993,7 @@ class Directory {
//
// Never hold the mutex and do anything with the database or any
// other buffered IO. Violating this rule will result in deadlock.
- Lock mutex;
+ base::Lock mutex;
MetahandlesIndex* metahandles_index; // Entries indexed by metahandle
IdsIndex* ids_index; // Entries indexed by id
ParentIdChildIndex* parent_id_child_index;
@@ -1021,7 +1021,7 @@ class Directory {
// releasing the transaction mutex.
browser_sync::Channel<DirectoryChangeEvent> changes_channel;
- Lock changes_channel_mutex;
+ base::Lock changes_channel_mutex;
KernelShareInfoStatus info_status;
// These 3 members are backed in the share_info table, and
@@ -1037,7 +1037,7 @@ class Directory {
// It doesn't make sense for two threads to run SaveChanges at the same
// time; this mutex protects that activity.
- Lock save_changes_mutex;
+ base::Lock save_changes_mutex;
// The next metahandle is protected by kernel mutex.
int64 next_metahandle;
@@ -1057,7 +1057,7 @@ class ScopedKernelLock {
explicit ScopedKernelLock(const Directory*);
~ScopedKernelLock() {}
- AutoLock scoped_lock_;
+ base::AutoLock scoped_lock_;
Directory* const dir_;
DISALLOW_COPY_AND_ASSIGN(ScopedKernelLock);
};
« no previous file with comments | « chrome/browser/sync/syncable/directory_manager.cc ('k') | chrome/browser/sync/syncable/syncable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698