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

Unified Diff: Source/core/fetch/ResourceFetcher.cpp

Issue 1270343003: Oilpan: have ResourceFetcher use a prefinalizer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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 | « Source/core/fetch/ResourceFetcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ResourceFetcher.cpp
diff --git a/Source/core/fetch/ResourceFetcher.cpp b/Source/core/fetch/ResourceFetcher.cpp
index a4f710dd953e4147a4151ede6b3b3e942d521724..f8d5da40113916a23bb9c063d83e0b2c81d4258a 100644
--- a/Source/core/fetch/ResourceFetcher.cpp
+++ b/Source/core/fetch/ResourceFetcher.cpp
@@ -163,11 +163,16 @@ ResourceFetcher::ResourceFetcher(FetchContext* context)
, m_imagesEnabled(true)
, m_allowStaleResources(false)
{
+#if ENABLE(OILPAN)
+ ThreadState::current()->registerPreFinalizer(this);
+#endif
}
ResourceFetcher::~ResourceFetcher()
{
+#if !ENABLE(OILPAN)
clearPreloads();
+#endif
}
Resource* ResourceFetcher::cachedResource(const KURL& resourceURL) const
« no previous file with comments | « Source/core/fetch/ResourceFetcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698