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

Unified Diff: content/browser/dom_storage/dom_storage_task_runner.cc

Issue 2873333004: Rename TaskRunner::RunsTasksOnCurrentThread() in //content (Closed)
Patch Set: 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 | « content/browser/byte_stream.cc ('k') | content/browser/fileapi/browser_file_system_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/dom_storage/dom_storage_task_runner.cc
diff --git a/content/browser/dom_storage/dom_storage_task_runner.cc b/content/browser/dom_storage/dom_storage_task_runner.cc
index edfdc722b26075c091b9fb9a106d8a1f745a7327..f5af6384304b3d188768ee8ad564328e67483110 100644
--- a/content/browser/dom_storage/dom_storage_task_runner.cc
+++ b/content/browser/dom_storage/dom_storage_task_runner.cc
@@ -25,8 +25,8 @@ DOMStorageWorkerPoolTaskRunner::DOMStorageWorkerPoolTaskRunner(
DOMStorageWorkerPoolTaskRunner::~DOMStorageWorkerPoolTaskRunner() = default;
bool DOMStorageWorkerPoolTaskRunner::RunsTasksInCurrentSequence() const {
- return primary_sequence_->RunsTasksOnCurrentThread() ||
- commit_sequence_->RunsTasksOnCurrentThread();
+ return primary_sequence_->RunsTasksInCurrentSequence() ||
+ commit_sequence_->RunsTasksInCurrentSequence();
}
bool DOMStorageWorkerPoolTaskRunner::PostDelayedTask(
@@ -45,11 +45,11 @@ bool DOMStorageWorkerPoolTaskRunner::PostShutdownBlockingTask(
}
void DOMStorageWorkerPoolTaskRunner::AssertIsRunningOnPrimarySequence() const {
- DCHECK(primary_sequence_->RunsTasksOnCurrentThread());
+ DCHECK(primary_sequence_->RunsTasksInCurrentSequence());
}
void DOMStorageWorkerPoolTaskRunner::AssertIsRunningOnCommitSequence() const {
- DCHECK(commit_sequence_->RunsTasksOnCurrentThread());
+ DCHECK(commit_sequence_->RunsTasksInCurrentSequence());
}
scoped_refptr<base::SequencedTaskRunner>
@@ -87,11 +87,11 @@ bool MockDOMStorageTaskRunner::PostShutdownBlockingTask(
}
void MockDOMStorageTaskRunner::AssertIsRunningOnPrimarySequence() const {
- DCHECK(RunsTasksOnCurrentThread());
+ DCHECK(RunsTasksInCurrentSequence());
}
void MockDOMStorageTaskRunner::AssertIsRunningOnCommitSequence() const {
- DCHECK(RunsTasksOnCurrentThread());
+ DCHECK(RunsTasksInCurrentSequence());
}
scoped_refptr<base::SequencedTaskRunner>
« no previous file with comments | « content/browser/byte_stream.cc ('k') | content/browser/fileapi/browser_file_system_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698