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

Unified Diff: base/task_runner_util.h

Issue 1781843003: Remove CallbackParamTraits and CallbackForward (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« base/callback_internal.h ('K') | « base/callback_list.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_runner_util.h
diff --git a/base/task_runner_util.h b/base/task_runner_util.h
index da088db2a21928192eb90e50670e7ac81b448cf6..ba8e120c6f4393496130d9bef69a275b28533752 100644
--- a/base/task_runner_util.h
+++ b/base/task_runner_util.h
@@ -7,7 +7,6 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
-#include "base/callback_internal.h"
#include "base/logging.h"
#include "base/task_runner.h"
@@ -32,7 +31,7 @@ void ReplyAdapter(const Callback<void(ReplyArgType)>& callback,
// current code that relies on this API softness has been removed.
// http://crbug.com/162712
if (!callback.is_null())
- callback.Run(CallbackForward(*result));
+ callback.Run(std::move(*result));
}
} // namespace internal
« base/callback_internal.h ('K') | « base/callback_list.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698