diff options
author | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-02 06:23:48 +0000 |
---|---|---|
committer | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-02 06:23:48 +0000 |
commit | 5d15ae918f5b07bb5203ee001cdefd9058ddac86 (patch) | |
tree | d0776910d4c86344884114ccaa6cf51d2ac72f96 /base/message_loop.cc | |
parent | 74a422edbf6b455f83931548c5aeee0f454c9520 (diff) | |
download | chromium_src-5d15ae918f5b07bb5203ee001cdefd9058ddac86.zip chromium_src-5d15ae918f5b07bb5203ee001cdefd9058ddac86.tar.gz chromium_src-5d15ae918f5b07bb5203ee001cdefd9058ddac86.tar.bz2 |
Call ResetBirthTime before dispatching the user's Task. Also, remove PostSignaledTask since it won't be used.
TBR=jar
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop.cc')
-rw-r--r-- | base/message_loop.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/base/message_loop.cc b/base/message_loop.cc index 84b6a04..7d2fbff 100644 --- a/base/message_loop.cc +++ b/base/message_loop.cc @@ -342,15 +342,6 @@ void MessageLoop::PostDelayedTask(const tracked_objects::Location& from_here, PostTaskInternal(task); } -void MessageLoop::PostSignaledTask(Task* task) { - DCHECK(!task->MissingBirthplace()); - task->ResetBirthTime(); - DCHECK(!task->is_owned_by_message_loop()); - task->set_posted_task_delay(0); // Run ASAP, and we take ownership. - DCHECK(task->is_owned_by_message_loop()); - PostTaskInternal(task); -} - void MessageLoop::PostTaskInternal(Task* task) { // Warning: Don't try to short-circuit, and handle this thread's tasks more // directly, as it could starve handling of foreign threads. Put every task |