Index: third_party/WebKit/Source/platform/mojo/MojoHelper.h |
diff --git a/third_party/WebKit/Source/platform/mojo/MojoHelper.h b/third_party/WebKit/Source/platform/mojo/MojoHelper.h |
index cb3787823cf898aaef902d1ba64e2df021bdd0dc..b278e759b35b31f24c6151f85bafc3cde259b254 100644 |
--- a/third_party/WebKit/Source/platform/mojo/MojoHelper.h |
+++ b/third_party/WebKit/Source/platform/mojo/MojoHelper.h |
@@ -23,6 +23,12 @@ R CallWTFFunction(Function<R(Args...)>* functor, Args... args) |
} |
template <typename R, typename... Args> |
+base::Callback<R(Args...)> createBaseCallback(PassOwnPtr<Function<R(Args...)>> functor) |
+{ |
+ return base::Bind(&internal::CallWTFFunction<R, Args...>, base::Owned(functor.leakPtr())); |
+} |
+ |
+template <typename R, typename... Args> |
base::Callback<R(Args...)> createBaseCallback(std::unique_ptr<Function<R(Args...)>> functor) |
{ |
return base::Bind(&internal::CallWTFFunction<R, Args...>, base::Owned(functor.release())); |