| Index: Source/web/WebKit.cpp
|
| diff --git a/Source/web/WebKit.cpp b/Source/web/WebKit.cpp
|
| index 6a999b2636adb64e3997749476eb22a867ede4ce..a2e56c384f703f212fedfa7781f94bedf08ce8c9 100644
|
| --- a/Source/web/WebKit.cpp
|
| +++ b/Source/web/WebKit.cpp
|
| @@ -163,6 +163,7 @@ void initializeWithoutV8(Platform* platform)
|
| WTF::initialize(currentTimeFunction, monotonicallyIncreasingTimeFunction);
|
| WTF::initializeMainThread(callOnMainThreadFunction);
|
| WebCore::Heap::init();
|
| + // currentThread will always be non-null in production, but can be null in Chromium unit tests.
|
| if (WebThread* currentThread = platform->currentThread()) {
|
| ASSERT(!s_pendingGCRunner);
|
| s_pendingGCRunner = new WebCore::PendingGCRunner;
|
| @@ -216,6 +217,7 @@ void shutdownWithoutV8()
|
| ASSERT(!s_endOfTaskRunner);
|
| WebCore::ImageDecodingStore::shutdown();
|
| WebCore::shutdown();
|
| + // currentThread will always be non-null in production, but can be null in Chromium unit tests.
|
| if (Platform::current()->currentThread()) {
|
| ASSERT(s_pendingGCRunner);
|
| delete s_pendingGCRunner;
|
|
|