Chromium Code Reviews| Index: third_party/WebKit/Source/platform/exported/Platform.cpp |
| diff --git a/third_party/WebKit/Source/platform/exported/Platform.cpp b/third_party/WebKit/Source/platform/exported/Platform.cpp |
| index 2b2ccb844556789f76c7a95a312bf5460fffa513..1e501c5541c725648466f3bc20249299b70f26f0 100644 |
| --- a/third_party/WebKit/Source/platform/exported/Platform.cpp |
| +++ b/third_party/WebKit/Source/platform/exported/Platform.cpp |
| @@ -29,9 +29,10 @@ |
| */ |
| #include "config.h" |
| -#include "platform/PartitionAllocMemoryDumpProvider.h" |
| #include "public/platform/Platform.h" |
| +#include "platform/PartitionAllocMemoryDumpProvider.h" |
| + |
| namespace blink { |
| static Platform* s_platform = 0; |
| @@ -54,7 +55,7 @@ void Platform::initialize(Platform* platform) |
| void Platform::shutdown() |
| { |
| - if (s_platform->m_mainThread) |
| + if (s_platform && s_platform->m_mainThread) |
|
haraken
2015/10/14 00:57:41
I'm just curious but why do we need this change in
ssid
2015/10/14 05:01:22
Oh sorry. It came into this cl by mistake. I was m
|
| s_platform->unregisterMemoryDumpProvider(PartitionAllocMemoryDumpProvider::instance()); |
| if (s_platform) |