| Index: ios/web/web_thread_impl.cc
|
| diff --git a/ios/web/web_thread_impl.cc b/ios/web/web_thread_impl.cc
|
| index 2a28556be4567f046cf6e19adab71aef600b04e7..29f20ada45fe1347d709d09370d5104c3cd2c273 100644
|
| --- a/ios/web/web_thread_impl.cc
|
| +++ b/ios/web/web_thread_impl.cc
|
| @@ -335,10 +335,10 @@ bool WebThread::PostBlockingPoolTask(const tracked_objects::Location& from_here,
|
| // static
|
| bool WebThread::PostBlockingPoolTaskAndReply(
|
| const tracked_objects::Location& from_here,
|
| - const base::Closure& task,
|
| - const base::Closure& reply) {
|
| - return g_globals.Get().blocking_pool->PostTaskAndReply(from_here, task,
|
| - reply);
|
| + base::Closure task,
|
| + base::Closure reply) {
|
| + return g_globals.Get().blocking_pool->PostTaskAndReply(
|
| + from_here, std::move(task), std::move(reply));
|
| }
|
|
|
| // static
|
| @@ -440,10 +440,10 @@ bool WebThread::PostNonNestableDelayedTask(
|
| // static
|
| bool WebThread::PostTaskAndReply(ID identifier,
|
| const tracked_objects::Location& from_here,
|
| - const base::Closure& task,
|
| - const base::Closure& reply) {
|
| + base::Closure task,
|
| + base::Closure reply) {
|
| return GetTaskRunnerForThread(identifier)
|
| - ->PostTaskAndReply(from_here, task, reply);
|
| + ->PostTaskAndReply(from_here, std::move(task), std::move(reply));
|
| }
|
|
|
| // static
|
|
|