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

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

Issue 2637843002: Migrate base::TaskRunner from Closure to OnceClosure (Closed)
Patch Set: rebase Created 3 years, 8 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
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 f4e18f0fb211ac945b1cfbe1e463cc8bceac0ccd..738be983203a2146d0b873105597e8a10a15e38a 100644
--- a/content/browser/dom_storage/dom_storage_task_runner.cc
+++ b/content/browser/dom_storage/dom_storage_task_runner.cc
@@ -31,7 +31,7 @@ bool DOMStorageWorkerPoolTaskRunner::RunsTasksOnCurrentThread() const {
bool DOMStorageWorkerPoolTaskRunner::PostDelayedTask(
const tracked_objects::Location& from_here,
- base::Closure task,
+ base::OnceClosure task,
base::TimeDelta delay) {
return primary_sequence_->PostDelayedTask(from_here, std::move(task), delay);
}
@@ -39,7 +39,7 @@ bool DOMStorageWorkerPoolTaskRunner::PostDelayedTask(
bool DOMStorageWorkerPoolTaskRunner::PostShutdownBlockingTask(
const tracked_objects::Location& from_here,
SequenceID sequence_id,
- base::Closure task) {
+ base::OnceClosure task) {
return GetSequencedTaskRunner(sequence_id)
->PostTask(from_here, std::move(task));
}
@@ -74,7 +74,7 @@ bool MockDOMStorageTaskRunner::RunsTasksOnCurrentThread() const {
bool MockDOMStorageTaskRunner::PostDelayedTask(
const tracked_objects::Location& from_here,
- base::Closure task,
+ base::OnceClosure task,
base::TimeDelta delay) {
return task_runner_->PostTask(from_here, std::move(task));
}
@@ -82,7 +82,7 @@ bool MockDOMStorageTaskRunner::PostDelayedTask(
bool MockDOMStorageTaskRunner::PostShutdownBlockingTask(
const tracked_objects::Location& from_here,
SequenceID sequence_id,
- base::Closure task) {
+ base::OnceClosure task) {
return task_runner_->PostTask(from_here, std::move(task));
}
« no previous file with comments | « content/browser/dom_storage/dom_storage_task_runner.h ('k') | content/browser/startup_task_runner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698