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

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

Issue 1477213003: More switching to standard type traits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use std::is_convertible in threading traits Created 5 years 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/OwnPtrCommon.h
diff --git a/third_party/WebKit/Source/wtf/OwnPtrCommon.h b/third_party/WebKit/Source/wtf/OwnPtrCommon.h
index 301629e82fd3cbc1e894afa97764e52fc4db2fa8..d983fb576b34806264ad7111ae2dd9e12d58ac4d 100644
--- a/third_party/WebKit/Source/wtf/OwnPtrCommon.h
+++ b/third_party/WebKit/Source/wtf/OwnPtrCommon.h
@@ -39,8 +39,8 @@ class ThreadSafeRefCountedBase;
template<typename T>
struct IsRefCounted {
- static const bool value = IsSubclass<T, RefCountedBase>::value
- || IsSubclass<T, ThreadSafeRefCountedBase>::value;
+ static const bool value = WTF::IsBaseOf<RefCountedBase, T>::value
+ || WTF::IsBaseOf<ThreadSafeRefCountedBase, T>::value;
};
template <typename T>

Powered by Google App Engine
This is Rietveld 408576698