| 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);
|
| }
|
|
|