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

Unified Diff: third_party/WebKit/Source/platform/CrossThreadCopier.cpp

Issue 1477213003: More switching to standard type traits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Excluded WTF::IsSubclass from the patch 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/platform/CrossThreadCopier.cpp
diff --git a/third_party/WebKit/Source/platform/CrossThreadCopier.cpp b/third_party/WebKit/Source/platform/CrossThreadCopier.cpp
index 367c1249ade671fcb41099ab0bce89c86ce6ea9d..a1d1190320524601ea5ed1447c34a45cfd69267c 100644
--- a/third_party/WebKit/Source/platform/CrossThreadCopier.cpp
+++ b/third_party/WebKit/Source/platform/CrossThreadCopier.cpp
@@ -69,17 +69,17 @@ CrossThreadCopierBase<false, false, false, ResourceResponse>::Type CrossThreadCo
class CopierThreadSafeRefCountedTest : public ThreadSafeRefCounted<CopierThreadSafeRefCountedTest> {
};
-static_assert((WTF::IsSameType<
+static_assert((std::is_same<
PassRefPtr<CopierThreadSafeRefCountedTest>,
CrossThreadCopier<PassRefPtr<CopierThreadSafeRefCountedTest>>::Type
>::value),
"PassRefPtr test");
-static_assert((WTF::IsSameType<
+static_assert((std::is_same<
PassRefPtr<CopierThreadSafeRefCountedTest>,
CrossThreadCopier<RefPtr<CopierThreadSafeRefCountedTest>>::Type
>::value),
"RefPtr test");
-static_assert((WTF::IsSameType<
+static_assert((std::is_same<
PassRefPtr<CopierThreadSafeRefCountedTest>,
CrossThreadCopier<CopierThreadSafeRefCountedTest*>::Type
>::value),
@@ -95,33 +95,33 @@ template<typename T> struct CrossThreadCopierBase<false, false, false, T> {
class CopierRefCountedTest : public RefCounted<CopierRefCountedTest> {
};
-static_assert((WTF::IsSameType<
+static_assert((std::is_same<
int,
CrossThreadCopier<PassRefPtr<CopierRefCountedTest>>::Type
>::value),
"PassRefPtr<RefCountedTest> test");
-static_assert((WTF::IsSameType<
+static_assert((std::is_same<
int,
CrossThreadCopier<RefPtr<CopierRefCountedTest>>::Type
>::value),
"RefPtr<RefCounted> test");
-static_assert((WTF::IsSameType<
+static_assert((std::is_same<
int,
CrossThreadCopier<CopierRefCountedTest*>::Type
>::value),
"Raw pointer RefCounted test");
// Verify that PassOwnPtr gets passed through.
-static_assert((WTF::IsSameType<
+static_assert((std::is_same<
PassOwnPtr<float>,
CrossThreadCopier<PassOwnPtr<float>>::Type
>::value),
"PassOwnPtr test");
// Verify that PassOwnPtr does not get passed through.
-static_assert((WTF::IsSameType<
+static_assert((std::is_same<
int,
CrossThreadCopier<OwnPtr<float>>::Type
>::value),
« no previous file with comments | « third_party/WebKit/Source/platform/CrossThreadCopier.h ('k') | third_party/WebKit/Source/platform/TraceEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698