Chromium Code Reviews| Index: ios/web/public/web_thread.h |
| diff --git a/ios/web/public/web_thread.h b/ios/web/public/web_thread.h |
| index 56cbb213d7a03e1d52883e40b1f44395e4be0abd..27e33209d21981dd2c3568a086adc75091fa410f 100644 |
| --- a/ios/web/public/web_thread.h |
| +++ b/ios/web/public/web_thread.h |
| @@ -7,7 +7,7 @@ |
| #include <string> |
| -#include "base/callback_forward.h" |
| +#include "base/callback.h" |
| #include "base/compiler_specific.h" |
| #include "base/location.h" |
| #include "base/logging.h" |
| @@ -116,19 +116,19 @@ class WebThread { |
| static bool PostTaskAndReply(ID identifier, |
| const tracked_objects::Location& from_here, |
| - const base::Closure& task, |
| - const base::Closure& reply); |
| + base::Closure task, |
| + base::Closure reply); |
| template <typename ReturnType, typename ReplyArgType> |
| static bool PostTaskAndReplyWithResult( |
| ID identifier, |
| const tracked_objects::Location& from_here, |
| - const base::Callback<ReturnType(void)>& task, |
| - const base::Callback<void(ReplyArgType)>& reply) { |
| + base::Callback<ReturnType()> task, |
| + base::Callback<void(ReplyArgType)> reply) { |
| scoped_refptr<base::SingleThreadTaskRunner> task_runner = |
| GetTaskRunnerForThread(identifier); |
| - return base::PostTaskAndReplyWithResult(task_runner.get(), from_here, task, |
| - reply); |
| + return base::PostTaskAndReplyWithResult(task_runner.get(), from_here, |
| + std::move(task), std::move(reply)); |
|
gab
2017/02/07 15:46:08
#include <utility>
tzik
2017/02/08 01:39:32
Done.
|
| } |
| template <class T> |
| @@ -163,8 +163,8 @@ class WebThread { |
| const base::Closure& task); |
| static bool PostBlockingPoolTaskAndReply( |
| const tracked_objects::Location& from_here, |
| - const base::Closure& task, |
| - const base::Closure& reply); |
| + base::Closure task, |
| + base::Closure reply); |
| static bool PostBlockingPoolSequencedTask( |
| const std::string& sequence_token_name, |
| const tracked_objects::Location& from_here, |