| Index: base/threading/post_task_and_reply_impl.cc
|
| diff --git a/base/threading/post_task_and_reply_impl.cc b/base/threading/post_task_and_reply_impl.cc
|
| index a82a4fd804386bddaaafafab8c53543c6772e09e..a883f9ef925210c87a1c8e3b919255465743065c 100644
|
| --- a/base/threading/post_task_and_reply_impl.cc
|
| +++ b/base/threading/post_task_and_reply_impl.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/bind.h"
|
| #include "base/location.h"
|
| +#include "base/logging.h"
|
| #include "base/single_thread_task_runner.h"
|
| #include "base/thread_task_runner_handle.h"
|
|
|
| @@ -86,6 +87,22 @@ bool PostTaskAndReplyImpl::PostTaskAndReply(
|
| return true;
|
| }
|
|
|
| +bool PostTaskAndReplyImpl::PostDelayedTaskAndReply(
|
| + const tracked_objects::Location& from_here,
|
| + const Closure& task,
|
| + const Closure& reply,
|
| + const TimeDelta& delay) {
|
| + PostTaskAndReplyRelay* relay =
|
| + new PostTaskAndReplyRelay(from_here, task, reply);
|
| + if (!PostDelayedTask(from_here, Bind(&PostTaskAndReplyRelay::Run,
|
| + Unretained(relay)), delay)) {
|
| + delete relay;
|
| + return false;
|
| + }
|
| +
|
| + return true;
|
| +}
|
| +
|
| } // namespace internal
|
|
|
| } // namespace base
|
|
|