diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-21 04:55:52 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-21 04:55:52 +0000 |
commit | 20305ec6f1acf21392c2f3938a14a96f1e28e76d (patch) | |
tree | 6eff1f7be4bad1a1362d3466f0ac59292dc51acc /chrome_frame/chrome_frame_delegate.h | |
parent | c6e8346b56ab61b35845aefcf9b241c654fe1253 (diff) | |
download | chromium_src-20305ec6f1acf21392c2f3938a14a96f1e28e76d.zip chromium_src-20305ec6f1acf21392c2f3938a14a96f1e28e76d.tar.gz chromium_src-20305ec6f1acf21392c2f3938a14a96f1e28e76d.tar.bz2 |
Remove obsolete base/lock.h and fix up callers to use the new header file and
the base namespace. Fix several files including lock.h unnecessarily.
BUG=none
TEST=none
Original review=http://codereview.chromium.org/6142009/
Patch by leviw@chromium.org
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72106 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_delegate.h')
-rw-r--r-- | chrome_frame/chrome_frame_delegate.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome_frame/chrome_frame_delegate.h b/chrome_frame/chrome_frame_delegate.h index 1954747..f6c1f4c 100644 --- a/chrome_frame/chrome_frame_delegate.h +++ b/chrome_frame/chrome_frame_delegate.h @@ -13,7 +13,7 @@ #include <vector> #include "base/file_path.h" -#include "base/lock.h" +#include "base/synchronization/lock.h" #include "chrome/common/automation_messages.h" #include "ipc/ipc_message.h" @@ -153,7 +153,7 @@ template <class T> class TaskMarshallerThroughWindowsMessages } void DeleteAllPendingTasks() { - AutoLock lock(lock_); + base::AutoLock lock(lock_); DVLOG_IF(1, !pending_tasks_.empty()) << "Destroying " << pending_tasks_.size() << " pending tasks"; @@ -184,7 +184,7 @@ template <class T> class TaskMarshallerThroughWindowsMessages } inline void PushTask(Task* task) { - AutoLock lock(lock_); + base::AutoLock lock(lock_); pending_tasks_.push(task); } @@ -192,7 +192,7 @@ template <class T> class TaskMarshallerThroughWindowsMessages // otherwise we assume this is an already destroyed task (but Window message // had remained in the thread queue). inline bool PopTask(Task* task) { - AutoLock lock(lock_); + base::AutoLock lock(lock_); if (!pending_tasks_.empty() && task == pending_tasks_.front()) { pending_tasks_.pop(); return true; @@ -201,7 +201,7 @@ template <class T> class TaskMarshallerThroughWindowsMessages return false; } - Lock lock_; + base::Lock lock_; std::queue<Task*> pending_tasks_; }; |