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

Unified Diff: Source/core/fetch/MemoryCache.h

Issue 214773004: Fix crash in MemoryCache::replace. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « no previous file | Source/core/fetch/MemoryCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/MemoryCache.h
diff --git a/Source/core/fetch/MemoryCache.h b/Source/core/fetch/MemoryCache.h
index 3cfbfb1a3ec32bc5acbdf8f3f97d092b56c0fab1..8cc53a315f28ab9fe4dcade1624d2ce4d92de1b9 100644
--- a/Source/core/fetch/MemoryCache.h
+++ b/Source/core/fetch/MemoryCache.h
@@ -136,7 +136,7 @@ public:
void add(Resource*);
void replace(Resource* newResource, Resource* oldResource);
- void remove(Resource* resource) { evict(resource); }
+ void remove(Resource*);
bool contains(const Resource*) const;
static KURL removeFragmentIdentifierIfNeeded(const KURL& originalURL);
@@ -201,7 +201,7 @@ private:
void pruneLiveResources();
void pruneNow(double currentTime);
- bool evict(Resource*);
+ bool evict(MemoryCacheEntry*);
static void removeURLFromCacheInternal(ExecutionContext*, const KURL&);
« no previous file with comments | « no previous file | Source/core/fetch/MemoryCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698