Commit 0beb0eb6 authored by michaeln's avatar michaeln Committed by Commit bot

Fix a bug that causes a DCHECK to sometimes get hit for no good reason.

BUG=584574

Review-Url: https://codereview.chromium.org/2333893002
Cr-Commit-Position: refs/heads/master@{#418740}
parent 9daf1ace
...@@ -380,7 +380,7 @@ void AppCacheRequestHandler::OnMainResponseFound( ...@@ -380,7 +380,7 @@ void AppCacheRequestHandler::OnMainResponseFound(
return; return;
} }
if (IsResourceTypeFrame(resource_type_) && cache_id != kAppCacheNoCacheId) { if (IsMainResourceType(resource_type_) && cache_id != kAppCacheNoCacheId) {
// AppCacheHost loads and holds a reference to the main resource cache // AppCacheHost loads and holds a reference to the main resource cache
// for two reasons, firstly to preload the cache into the working set // for two reasons, firstly to preload the cache into the working set
// in advance of subresource loads happening, secondly to prevent the // in advance of subresource loads happening, secondly to prevent the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment