Index: net/disk_cache/in_flight_io.cc |
=================================================================== |
--- net/disk_cache/in_flight_io.cc (revision 52555) |
+++ net/disk_cache/in_flight_io.cc (working copy) |
@@ -37,7 +37,7 @@ |
// Runs on a background thread. |
void InFlightIO::OnIOComplete(BackgroundIO* operation) { |
#ifndef NDEBUG |
- if (callback_thread_ == MessageLoop::current()) { |
+ if (callback_thread_->BelongsToCurrentThread()) { |
DCHECK(single_thread_ || !running_); |
single_thread_ = true; |
} |
@@ -66,7 +66,7 @@ |
// Runs on the primary thread. |
void InFlightIO::OnOperationPosted(BackgroundIO* operation) { |
- DCHECK(callback_thread_ == MessageLoop::current()); |
+ DCHECK(callback_thread_->BelongsToCurrentThread()); |
io_list_.insert(operation); |
} |