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

Unified Diff: third_party/WebKit/Source/web/WebKit.cpp

Issue 1399993004: testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: testing. Created 5 years, 2 months 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/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.

Powered by Google App Engine
This is Rietveld 408576698