Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: net/disk_cache/blockfile/in_flight_io.cc

Issue 2894863002: Rename TaskRunner::RunsTasksOnCurrentThread() in //net (Closed)
Patch Set: fixed build error Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/blockfile/in_flight_backend_io.h ('k') | net/extras/sqlite/sqlite_channel_id_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/in_flight_io.cc
diff --git a/net/disk_cache/blockfile/in_flight_io.cc b/net/disk_cache/blockfile/in_flight_io.cc
index 3694b75fc78fe054f4c7b6911eb64c0a473040ee..03dda6432fb65017cd88d275e605f07ecf161ca2 100644
--- a/net/disk_cache/blockfile/in_flight_io.cc
+++ b/net/disk_cache/blockfile/in_flight_io.cc
@@ -73,10 +73,10 @@ void InFlightIO::DropPendingIO() {
}
}
-// Runs on a background thread.
+// Runs in a background sequence.
void InFlightIO::OnIOComplete(BackgroundIO* operation) {
#if DCHECK_IS_ON()
- if (callback_task_runner_->RunsTasksOnCurrentThread()) {
+ if (callback_task_runner_->RunsTasksInCurrentSequence()) {
DCHECK(single_thread_ || !running_);
single_thread_ = true;
}
@@ -109,7 +109,7 @@ void InFlightIO::InvokeCallback(BackgroundIO* operation, bool cancel_task) {
// Runs on the primary thread.
void InFlightIO::OnOperationPosted(BackgroundIO* operation) {
- DCHECK(callback_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(callback_task_runner_->RunsTasksInCurrentSequence());
io_list_.insert(make_scoped_refptr(operation));
}
« no previous file with comments | « net/disk_cache/blockfile/in_flight_backend_io.h ('k') | net/extras/sqlite/sqlite_channel_id_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698