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

Unified Diff: third_party/WebKit/Source/core/fetch/MemoryCache.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
« no previous file with comments | « third_party/WebKit/Source/core/fetch/MemoryCache.h ('k') | third_party/WebKit/Source/web/WebKit.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/MemoryCache.cpp
diff --git a/third_party/WebKit/Source/core/fetch/MemoryCache.cpp b/third_party/WebKit/Source/core/fetch/MemoryCache.cpp
index 9e179a922cc0e68183c4297864aa79eafdd4e9eb..4d04fd525939cb42f7435e8fe9d083d3949bd759 100644
--- a/third_party/WebKit/Source/core/fetch/MemoryCache.cpp
+++ b/third_party/WebKit/Source/core/fetch/MemoryCache.cpp
@@ -54,6 +54,12 @@ MemoryCache* memoryCache()
return gMemoryCache->get();
}
+void shutdownCache()
+{
+ *gMemoryCache = nullptr;
haraken 2015/10/14 00:49:01 I now realized that this approach won't work... (I
+ delete gMemoryCache;
+}
+
MemoryCache* replaceMemoryCacheForTesting(MemoryCache* cache)
{
#if ENABLE(OILPAN)
« no previous file with comments | « third_party/WebKit/Source/core/fetch/MemoryCache.h ('k') | third_party/WebKit/Source/web/WebKit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698