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

Unified Diff: third_party/WebKit/Source/wtf/Functional.h

Issue 2329243002: Implement WTF::WeakPtr in terms of base::WeakPtr (Closed)
Patch Set: Thread-safety fix with comment Created 4 years, 3 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/wtf/Functional.h
diff --git a/third_party/WebKit/Source/wtf/Functional.h b/third_party/WebKit/Source/wtf/Functional.h
index 97d156086f32ca4bcd6157581821fc1431e82daf..cac8662d7a42a76be48706c6446394a77ed6baef 100644
--- a/third_party/WebKit/Source/wtf/Functional.h
+++ b/third_party/WebKit/Source/wtf/Functional.h
@@ -35,7 +35,6 @@
#include "wtf/RefPtr.h"
#include "wtf/ThreadSafeRefCounted.h"
#include "wtf/TypeTraits.h"
-#include "wtf/WeakPtr.h"
#include <utility>
namespace blink {
@@ -239,9 +238,6 @@ typedef Function<void(), CrossThreadAffinity> CrossThreadClosure;
namespace base {
template <typename T>
-struct IsWeakReceiver<WTF::WeakPtr<T>> : std::true_type {};
-
-template <typename T>
struct BindUnwrapTraits<WTF::RefPtr<T>> {
static T* Unwrap(const WTF::RefPtr<T>& wrapped)
{

Powered by Google App Engine
This is Rietveld 408576698