Index: base/task/cancelable_task_tracker.cc |
diff --git a/base/task/cancelable_task_tracker.cc b/base/task/cancelable_task_tracker.cc |
index a2e4799f43854485f9d077c27155683ab66ccf47..b6e4b6ac4dedfd80d546deca1fe3798a7106cfc9 100644 |
--- a/base/task/cancelable_task_tracker.cc |
+++ b/base/task/cancelable_task_tracker.cc |
@@ -11,10 +11,9 @@ |
#include "base/compiler_specific.h" |
#include "base/location.h" |
#include "base/memory/ref_counted.h" |
-#include "base/single_thread_task_runner.h" |
+#include "base/message_loop/message_loop_proxy.h" |
#include "base/synchronization/cancellation_flag.h" |
#include "base/task_runner.h" |
-#include "base/thread_task_runner_handle.h" |
using base::Bind; |
using base::CancellationFlag; |
@@ -86,7 +85,7 @@ |
DCHECK(thread_checker_.CalledOnValidThread()); |
// We need a MessageLoop to run reply. |
- DCHECK(base::ThreadTaskRunnerHandle::IsSet()); |
+ DCHECK(base::MessageLoopProxy::current().get()); |
// Owned by reply callback below. |
CancellationFlag* flag = new CancellationFlag(); |
@@ -114,7 +113,7 @@ |
CancelableTaskTracker::TaskId CancelableTaskTracker::NewTrackedTaskId( |
IsCanceledCallback* is_canceled_cb) { |
DCHECK(thread_checker_.CalledOnValidThread()); |
- DCHECK(base::ThreadTaskRunnerHandle::IsSet()); |
+ DCHECK(base::MessageLoopProxy::current().get()); |
TaskId id = next_id_; |
next_id_++; // int64 is big enough that we ignore the potential overflow. |
@@ -130,7 +129,7 @@ |
// Will always run |untrack_and_delete_flag| on current MessageLoop. |
base::ScopedClosureRunner* untrack_and_delete_flag_runner = |
new base::ScopedClosureRunner(Bind(&RunOrPostToTaskRunner, |
- base::ThreadTaskRunnerHandle::Get(), |
+ base::MessageLoopProxy::current(), |
untrack_and_delete_flag)); |
*is_canceled_cb = |