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

Unified Diff: chrome/browser/sync/util/channel.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/syncable.cc ('k') | chrome/browser/sync/util/extensions_activity_monitor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/util/channel.h
diff --git a/chrome/browser/sync/util/channel.h b/chrome/browser/sync/util/channel.h
index 88ddfc4a6b6c8ddb435a6eb61da8489bf0abf0cf..839d65314dc288128c5aa3f4f095d9f3baa898b2 100644
--- a/chrome/browser/sync/util/channel.h
+++ b/chrome/browser/sync/util/channel.h
@@ -50,8 +50,8 @@
//
///////////////////////////////////////////////////////////////////////////////
-#include "base/lock.h"
#include "base/observer_list.h"
+#include "base/synchronization/lock.h"
#include "base/threading/platform_thread.h"
namespace browser_sync {
@@ -98,7 +98,7 @@ class Channel {
ChannelHookup<EventType>* AddObserver(
ChannelEventHandler<EventType>* observer) {
- AutoLock scoped_lock(event_handlers_mutex_);
+ base::AutoLock scoped_lock(event_handlers_mutex_);
event_handlers_.AddObserver(observer);
return new ChannelHookup<EventType>(this, observer);
}
@@ -117,7 +117,7 @@ class Channel {
}
void Notify(const EventType& event) {
- AutoLock scoped_lock(event_handlers_mutex_);
+ base::AutoLock scoped_lock(event_handlers_mutex_);
// This may result in an observer trying to remove itself, so keep track
// of the thread we're locked on.
@@ -135,7 +135,7 @@ class Channel {
}
private:
- Lock event_handlers_mutex_;
+ base::Lock event_handlers_mutex_;
base::PlatformThreadId locking_thread_;
ObserverList<EventHandler> event_handlers_;
};
« no previous file with comments | « chrome/browser/sync/syncable/syncable.cc ('k') | chrome/browser/sync/util/extensions_activity_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698