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

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

Issue 2390583002: [WIP] WebFonts cache-aware timeout adaption (Closed)
Patch Set: switchToSwapPeriod(), Inspector disable cache check workaround 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
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 680151e44036c4e35d647a7853fc25cb3fb216a0..ade68f39f5c6f44320e268392a4aede77a342c58 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp
@@ -637,8 +637,10 @@ void InspectorNetworkAgent::willSendRequest(
if (m_state->booleanProperty(NetworkAgentState::cacheDisabled, false)) {
// It shouldn't be a ReturnCacheDataDontLoad request as those are blocked
// in shouldBlockRequest.
- DCHECK_NE(WebCachePolicy::ReturnCacheDataDontLoad,
- request.getCachePolicy());
+ // TODO(shaochuan): Cache-aware loading will be deactivated in
+ // setCachePolicy() if activated here. crbug.com/632580
+ DCHECK(request.isCacheAwareLoadingActivated() ||
+ WebCachePolicy::ReturnCacheDataDontLoad != request.getCachePolicy());
request.setCachePolicy(WebCachePolicy::BypassingCache);
request.setShouldResetAppCache(true);
}

Powered by Google App Engine
This is Rietveld 408576698