diff --git a/third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp b/third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp index f22d94d62cf626..3a46dac3deb39b 100644 --- a/third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp +++ b/third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp @@ -36,7 +36,7 @@ namespace blink { -static bool IsErrorStatusCode(int status_code) { +static bool IsHTTPErrorStatusCode(int status_code) { return status_code >= 400; } @@ -138,7 +138,8 @@ void NetworkResourcesData::ResourceData::ClearWeakMembers(Visitor* visitor) { // Mark loaded resources or resources without the buffer as loaded. if (cached_resource_->IsLoaded() || !cached_resource_->ResourceBuffer()) { - if (!IsErrorStatusCode(cached_resource_->GetResponse().HttpStatusCode())) { + if (!IsHTTPErrorStatusCode( + cached_resource_->GetResponse().HttpStatusCode())) { String content; bool base64_encoded; if (InspectorPageAgent::CachedResourceContent(cached_resource_, &content,