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

Unified Diff: third_party/WebKit/Source/wtf/FunctionalTest.cpp

Issue 2250373002: Readd base::UnwrapTraits to support rvalue-reference wrappers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20_oneshot
Patch Set: rebase Created 4 years, 4 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/wtf/Functional.h ('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/wtf/FunctionalTest.cpp
diff --git a/third_party/WebKit/Source/wtf/FunctionalTest.cpp b/third_party/WebKit/Source/wtf/FunctionalTest.cpp
index 0293b84907db18857d0ce06f18f0c8d6d3fb72a9..03c6e7c6ce0f17aafefc67b7628f06c8eb9dce49 100644
--- a/third_party/WebKit/Source/wtf/FunctionalTest.cpp
+++ b/third_party/WebKit/Source/wtf/FunctionalTest.cpp
@@ -78,11 +78,6 @@ private:
int m_value;
};
-UnwrappedClass Unwrap(const WrappedClass& wrapped)
-{
- return wrapped.unwrap();
-}
-
template<> struct ParamStorageTraits<ClassToBeWrapped> {
using StorageType = WrappedClass;
};
@@ -109,6 +104,21 @@ private:
WTF::WeakPtrFactory<HasWeakPtrSupport> m_weakPtrFactory;
};
+} // namespace WTF
+
+namespace base {
+
+template <>
+struct BindUnwrapTraits<WTF::WrappedClass> {
+ static WTF::UnwrappedClass Unwrap(const WTF::WrappedClass& wrapped)
+ {
+ return wrapped.unwrap();
+ }
+};
+
+} // namespace base
+
+namespace WTF {
namespace {
int returnFortyTwo()
« no previous file with comments | « third_party/WebKit/Source/wtf/Functional.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698