Chromium Code Reviews| Index: Source/platform/WebThreadSupportingGC.cpp |
| diff --git a/Source/platform/WebThreadSupportingGC.cpp b/Source/platform/WebThreadSupportingGC.cpp |
| index df76335a69473b83aed6c4e6dd002bd3b9652250..b08ed0e27448628b6844e04dcc8f5578f52a8c16 100644 |
| --- a/Source/platform/WebThreadSupportingGC.cpp |
| +++ b/Source/platform/WebThreadSupportingGC.cpp |
| @@ -5,10 +5,15 @@ |
| #include "config.h" |
| #include "platform/WebThreadSupportingGC.h" |
| +#include "wtf/Threading.h" |
| + |
| namespace blink { |
| PassOwnPtr<WebThreadSupportingGC> WebThreadSupportingGC::create(const char* name) |
| { |
| +#if ENABLE(ASSERT) |
| + WTF::willCreateThread(); |
|
kinuko
2015/01/27 14:50:37
Adding a hook here feels a bit slippery, suggestio
|
| +#endif |
| return adoptPtr(new WebThreadSupportingGC(name)); |
| } |