Index: chrome_frame/task_marshaller.cc |
diff --git a/chrome_frame/task_marshaller.cc b/chrome_frame/task_marshaller.cc |
index 9ad74a0ab5615c710f804a357579643d9da1b606..5bc6a12d4a6d450dd49a867472aec13fe3fa3743 100644 |
--- a/chrome_frame/task_marshaller.cc |
+++ b/chrome_frame/task_marshaller.cc |
@@ -17,6 +17,7 @@ TaskMarshallerThroughMessageQueue::~TaskMarshallerThroughMessageQueue() { |
void TaskMarshallerThroughMessageQueue::PostTask( |
const tracked_objects::Location& from_here, const base::Closure& task) { |
DCHECK(wnd_ != NULL); |
+ |
lock_.Acquire(); |
bool has_work = !pending_tasks_.empty(); |
pending_tasks_.push(task); |