| Index: third_party/WebKit/Source/web/WebKit.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebKit.cpp b/third_party/WebKit/Source/web/WebKit.cpp
|
| index dca9111bed0dd0637169403bbdb84a930ad6a32c..4315a6193c41852fbc824c4c4b61141bba79d5aa 100644
|
| --- a/third_party/WebKit/Source/web/WebKit.cpp
|
| +++ b/third_party/WebKit/Source/web/WebKit.cpp
|
| @@ -41,6 +41,7 @@
|
| #include "core/frame/Settings.h"
|
| #include "core/page/Page.h"
|
| #include "core/workers/WorkerGlobalScopeProxy.h"
|
| +#include "core/fetch/MemoryCache.h"
|
| #include "gin/public/v8_platform.h"
|
| #include "modules/InitModules.h"
|
| #include "platform/LayoutTestSupport.h"
|
| @@ -121,6 +122,8 @@ void initialize(Platform* platform)
|
| ASSERT(!s_endOfTaskRunner);
|
| s_endOfTaskRunner = new EndOfTaskRunner;
|
| currentThread->addTaskObserver(s_endOfTaskRunner);
|
| +
|
| + memoryCache();
|
| }
|
| }
|
|
|
| @@ -198,6 +201,8 @@ void shutdown()
|
| {
|
| // currentThread() is null if we are running on a thread without a message loop.
|
| if (Platform::current()->currentThread()) {
|
| + shutdownCache();
|
| +
|
| // We don't need to (cannot) remove s_endOfTaskRunner from the current
|
| // message loop, because the message loop is already destructed before
|
| // the shutdown() is called.
|
|
|