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

Unified Diff: content/renderer/categorized_worker_pool.h

Issue 2122543002: Replace Closure in TaskRunner::PostTask with OneShotCallback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@07_oneshot
Patch Set: fix Created 4 years, 3 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/public/browser/content_browser_client.cc ('k') | content/renderer/categorized_worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/categorized_worker_pool.h
diff --git a/content/renderer/categorized_worker_pool.h b/content/renderer/categorized_worker_pool.h
index 2f75f2183f24d0c145e55697f53c86470f371837..09a48261ce774449cf9e0f0696b7e3d746190955 100644
--- a/content/renderer/categorized_worker_pool.h
+++ b/content/renderer/categorized_worker_pool.h
@@ -36,7 +36,7 @@ class CONTENT_EXPORT CategorizedWorkerPool : public base::TaskRunner,
// Overridden from base::TaskRunner:
bool PostDelayedTask(const tracked_objects::Location& from_here,
- const base::Closure& task,
+ base::OnceClosure task,
base::TimeDelta delay) override;
bool RunsTasksOnCurrentThread() const override;
@@ -81,7 +81,7 @@ class CONTENT_EXPORT CategorizedWorkerPool : public base::TaskRunner,
// |task_graph_runner_|.
class ClosureTask : public cc::Task {
public:
- explicit ClosureTask(const base::Closure& closure);
+ explicit ClosureTask(base::OnceClosure closure);
// Overridden from cc::Task:
void RunOnWorkerThread() override;
@@ -90,7 +90,7 @@ class CONTENT_EXPORT CategorizedWorkerPool : public base::TaskRunner,
~ClosureTask() override;
private:
- base::Closure closure_;
+ base::OnceClosure closure_;
DISALLOW_COPY_AND_ASSIGN(ClosureTask);
};
« no previous file with comments | « content/public/browser/content_browser_client.cc ('k') | content/renderer/categorized_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698