Index: content/public/browser/browser_thread.h |
diff --git a/content/public/browser/browser_thread.h b/content/public/browser/browser_thread.h |
index f410569a0f5a91bc7a6988bf26ae751b69860acc..ad2db9118ded8de7523c85f0fc823a03755cc031 100644 |
--- a/content/public/browser/browser_thread.h |
+++ b/content/public/browser/browser_thread.h |
@@ -116,24 +116,24 @@ class CONTENT_EXPORT BrowserThread { |
// the target thread may already have a Quit message in its queue. |
static bool PostTask(ID identifier, |
const tracked_objects::Location& from_here, |
- base::Closure task); |
+ base::OnceClosure task); |
static bool PostDelayedTask(ID identifier, |
const tracked_objects::Location& from_here, |
- base::Closure task, |
+ base::OnceClosure task, |
base::TimeDelta delay); |
static bool PostNonNestableTask(ID identifier, |
const tracked_objects::Location& from_here, |
- base::Closure task); |
+ base::OnceClosure task); |
static bool PostNonNestableDelayedTask( |
ID identifier, |
const tracked_objects::Location& from_here, |
- base::Closure task, |
+ base::OnceClosure task, |
base::TimeDelta delay); |
static bool PostTaskAndReply(ID identifier, |
const tracked_objects::Location& from_here, |
- base::Closure task, |
- base::Closure reply); |
+ base::OnceClosure task, |
+ base::OnceClosure reply); |
template <typename ReturnType, typename ReplyArgType> |
static bool PostTaskAndReplyWithResult( |
@@ -193,15 +193,15 @@ class CONTENT_EXPORT BrowserThread { |
// base::PostTaskAndReplyWithResult() with GetBlockingPool() as the task |
// runner. |
static bool PostBlockingPoolTask(const tracked_objects::Location& from_here, |
- base::Closure task); |
+ base::OnceClosure task); |
static bool PostBlockingPoolTaskAndReply( |
const tracked_objects::Location& from_here, |
- base::Closure task, |
- base::Closure reply); |
+ base::OnceClosure task, |
+ base::OnceClosure reply); |
static bool PostBlockingPoolSequencedTask( |
const std::string& sequence_token_name, |
const tracked_objects::Location& from_here, |
- base::Closure task); |
+ base::OnceClosure task); |
// For use with scheduling non-critical tasks for execution after startup. |
// The order or execution of tasks posted here is unspecified even when |
@@ -213,7 +213,7 @@ class CONTENT_EXPORT BrowserThread { |
static void PostAfterStartupTask( |
const tracked_objects::Location& from_here, |
const scoped_refptr<base::TaskRunner>& task_runner, |
- base::Closure task); |
+ base::OnceClosure task); |
// Returns the thread pool used for blocking file I/O. Use this object to |
// perform random blocking operations such as file writes. |