Index: content/browser/appcache/appcache_update_job_unittest.cc |
diff --git a/content/browser/appcache/appcache_update_job_unittest.cc b/content/browser/appcache/appcache_update_job_unittest.cc |
index b69af526d3ba92f2528931b302478cfa1ad96225..c5ddf4f87cde389265bf71def358f8e900eb1e69 100644 |
--- a/content/browser/appcache/appcache_update_job_unittest.cc |
+++ b/content/browser/appcache/appcache_update_job_unittest.cc |
@@ -4,8 +4,11 @@ |
#include "base/bind.h" |
#include "base/bind_helpers.h" |
+#include "base/location.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/stl_util.h" |
#include "base/synchronization/waitable_event.h" |
+#include "base/thread_task_runner_handle.h" |
#include "base/threading/thread.h" |
#include "content/browser/appcache/appcache_group.h" |
#include "content/browser/appcache/appcache_host.h" |
@@ -603,7 +606,7 @@ class AppCacheUpdateJobTest : public testing::Test, |
template <class Method> |
void RunTestOnIOThread(Method method) { |
event_.reset(new base::WaitableEvent(false, false)); |
- io_thread_->message_loop()->PostTask( |
+ io_thread_->task_runner()->PostTask( |
FROM_HERE, base::Bind(method, base::Unretained(this))); |
// Wait until task is done before exiting the test. |
@@ -2983,10 +2986,9 @@ class AppCacheUpdateJobTest : public testing::Test, |
void UpdateFinished() { |
// We unwind the stack prior to finishing up to let stack-based objects |
// get deleted. |
- base::MessageLoop::current()->PostTask( |
- FROM_HERE, |
- base::Bind(&AppCacheUpdateJobTest::UpdateFinishedUnwound, |
- base::Unretained(this))); |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
+ FROM_HERE, base::Bind(&AppCacheUpdateJobTest::UpdateFinishedUnwound, |
+ base::Unretained(this))); |
} |
void UpdateFinishedUnwound() { |