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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp

Issue 2385313002: Avoid MemoryCache eviction of preloaded resources with devtools open (Closed)
Patch Set: review comment Created 4 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.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
index 0d22826cc5ccf8266efffbd9138a7421c86034c5..8ea886b282b3daad7649a9a3ac3a80688445c7b5 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
@@ -1373,7 +1373,7 @@ void InspectorNetworkAgent::didCommitLoad(LocalFrame* frame,
return;
if (m_state->booleanProperty(NetworkAgentState::cacheDisabled, false))
- memoryCache()->evictResources();
+ memoryCache()->evictResources(MemoryCache::DoNotEvictUnusedPreloads);
m_resourcesData->clear(IdentifiersFactory::loaderId(loader));
}
« no previous file with comments | « third_party/WebKit/Source/core/fetch/MemoryCache.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698