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

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

Issue 1981233003: Finish migration from sameThreadBindForMojo to createBaseCallback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « third_party/WebKit/Source/modules/vr/VRController.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 def31586e816696868cbf0e30ca4978495823e27..be49353efad44073b68a043fbed0bfeb6c088826 100644
--- a/third_party/WebKit/Source/platform/mojo/MojoHelper.h
+++ b/third_party/WebKit/Source/platform/mojo/MojoHelper.h
@@ -23,17 +23,6 @@ R CallWTFFunction(Function<R(Args...)>* functor, Args... args)
}
-// Binds an instance of a class to its member function. Does not bind anything
-// else. Provides limited access to base::Bind() function. base::Bind() could
-// be dangerous if it's used across threads, so we don't want to allow general
-// use of base::Bind(). See also "platform/ThreadSafeFunctional.h".
-template <typename Class, typename ReturnType, typename... Args>
-mojo::Callback<ReturnType(Args...)>
-sameThreadBindForMojo(ReturnType (Class::*method)(Args...), Class* instance)
-{
- return base::Bind(method, base::Unretained(instance));
-}
-
template <typename R, typename... Args>
base::Callback<R(Args...)> createBaseCallback(PassOwnPtr<Function<R(Args...)>> functor)
{
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698