Index: content/browser/appcache/appcache_storage_impl_unittest.cc |
diff --git a/content/browser/appcache/appcache_storage_impl_unittest.cc b/content/browser/appcache/appcache_storage_impl_unittest.cc |
index 85725b46b010641da7311283ac9fa3be77bb834a..a59be1c7e864bdce8db858915b0293ac665cfade 100644 |
--- a/content/browser/appcache/appcache_storage_impl_unittest.cc |
+++ b/content/browser/appcache/appcache_storage_impl_unittest.cc |
@@ -410,7 +410,7 @@ class AppCacheStorageImplTest : public testing::Test { |
} |
void SetUpTest() { |
- DCHECK(base::MessageLoop::current() == io_thread->message_loop()); |
+ DCHECK(io_thread->task_runner()->BelongsToCurrentThread()); |
service_.reset(new AppCacheServiceImpl(NULL)); |
service_->Initialize(base::FilePath(), db_thread->task_runner(), NULL); |
mock_quota_manager_proxy_ = new MockQuotaManagerProxy(); |
@@ -419,7 +419,7 @@ class AppCacheStorageImplTest : public testing::Test { |
} |
void TearDownTest() { |
- DCHECK(base::MessageLoop::current() == io_thread->message_loop()); |
+ DCHECK(io_thread->task_runner()->BelongsToCurrentThread()); |
storage()->CancelDelegateCallbacks(delegate()); |
group_ = NULL; |
cache_ = NULL; |
@@ -433,7 +433,7 @@ class AppCacheStorageImplTest : public testing::Test { |
void TestFinished() { |
// We unwind the stack prior to finishing up to let stack |
// based objects get deleted. |
- DCHECK(base::MessageLoop::current() == io_thread->message_loop()); |
+ DCHECK(io_thread->task_runner()->BelongsToCurrentThread()); |
base::ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, base::Bind(&AppCacheStorageImplTest::TestFinishedUnwound, |
base::Unretained(this))); |
@@ -449,7 +449,7 @@ class AppCacheStorageImplTest : public testing::Test { |
} |
void ScheduleNextTask() { |
- DCHECK(base::MessageLoop::current() == io_thread->message_loop()); |
+ DCHECK(io_thread->task_runner()->BelongsToCurrentThread()); |
if (task_stack_.empty()) { |
return; |
} |