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

Unified Diff: sky/engine/core/fetch/MemoryCache.cpp

Issue 683703003: Remove various Heap* types. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 | « sky/engine/core/fetch/MemoryCache.h ('k') | sky/engine/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/fetch/MemoryCache.cpp
diff --git a/sky/engine/core/fetch/MemoryCache.cpp b/sky/engine/core/fetch/MemoryCache.cpp
index 4a98b62a5be24425f813d9c81e00aadd718b3de3..bd5b79a4fa5c4118493e865c8d096c02b8f33a99 100644
--- a/sky/engine/core/fetch/MemoryCache.cpp
+++ b/sky/engine/core/fetch/MemoryCache.cpp
@@ -56,18 +56,8 @@ MemoryCache* memoryCache()
PassOwnPtr<MemoryCache> replaceMemoryCacheForTesting(PassOwnPtr<MemoryCache> cache)
{
-#if ENABLE(OILPAN)
- // Move m_liveResources content to keep Resource objects alive.
- for (HeapHashSet<Member<Resource> >::iterator i = memoryCache()->m_liveResources.begin();
- i != memoryCache()->m_liveResources.end();
- ++i) {
- cache->m_liveResources.add(*i);
- }
- memoryCache()->m_liveResources.clear();
-#else
// Make sure we have non-empty gMemoryCache.
memoryCache();
-#endif
OwnPtr<MemoryCache> oldCache = gMemoryCache->release();
*gMemoryCache = cache;
return oldCache.release();
« no previous file with comments | « sky/engine/core/fetch/MemoryCache.h ('k') | sky/engine/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698