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

Unified Diff: third_party/WebKit/Source/platform/mojo/MojoHelper.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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
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 be49353efad44073b68a043fbed0bfeb6c088826..b43f90252c6d6d712e84263f09d92f5097cadadd 100644
--- a/third_party/WebKit/Source/platform/mojo/MojoHelper.h
+++ b/third_party/WebKit/Source/platform/mojo/MojoHelper.h
@@ -24,12 +24,6 @@ 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()));

Powered by Google App Engine
This is Rietveld 408576698