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

Unified Diff: ios/web/web_thread_impl.h

Issue 2726523002: Pass Callback to TaskRunner by value and consume it on invocation (1) (Closed)
Patch Set: erase Closure* Created 3 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
« no previous file with comments | « ios/web/public/web_thread.h ('k') | ios/web/web_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_thread_impl.h
diff --git a/ios/web/web_thread_impl.h b/ios/web/web_thread_impl.h
index adc59cd8dea4cb392bfc53cf6dfcceabb3eff576..1341d63bd48066b7c0dd6ed31653f2f3224a7bdd 100644
--- a/ios/web/web_thread_impl.h
+++ b/ios/web/web_thread_impl.h
@@ -5,6 +5,7 @@
#ifndef IOS_WEB_WEB_THREAD_IMPL_H_
#define IOS_WEB_WEB_THREAD_IMPL_H_
+#include "base/callback.h"
#include "base/threading/thread.h"
#include "ios/web/public/web_thread.h"
@@ -48,7 +49,7 @@ class WebThreadImpl : public WebThread, public base::Thread {
static bool PostTaskHelper(WebThread::ID identifier,
const tracked_objects::Location& from_here,
- const base::Closure& task,
+ base::Closure task,
base::TimeDelta delay,
bool nestable);
« no previous file with comments | « ios/web/public/web_thread.h ('k') | ios/web/web_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698