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

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

Issue 2132973002: Replace a WTF::Function conversion operator to be a function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 6493495b8a658fe9214fb3da58d2e99420de40fc..e37112ba6e6f530bac0326e49c1267f19dfffafc 100644
--- a/third_party/WebKit/Source/platform/mojo/MojoHelper.h
+++ b/third_party/WebKit/Source/platform/mojo/MojoHelper.h
@@ -5,22 +5,10 @@
#ifndef MojoHelper_h
#define MojoHelper_h
-#include "base/callback.h"
#include "mojo/public/cpp/bindings/wtf_array.h"
#include "platform/heap/HeapAllocator.h"
-#include "wtf/Functional.h"
#include <utility>
-namespace blink {
-
-template <typename R, typename... Args>
-base::Callback<R(Args...)> createBaseCallback(std::unique_ptr<Function<R(Args...)>> functor)
-{
- return static_cast<base::Callback<R(Args...)>>(*functor);
-}
-
-} // namespace blink
-
namespace mojo {
// A |TypeConverter| that will create a |WTFArray<T>| containing a copy of the

Powered by Google App Engine
This is Rietveld 408576698