Index: content/browser/loader/cross_site_resource_handler.cc |
diff --git a/content/browser/loader/cross_site_resource_handler.cc b/content/browser/loader/cross_site_resource_handler.cc |
index 40d8e0f5af692834c21a2cbf25fb5134c253c7a0..a6d1273d722dbbfeb836fd30be28c58dbaf156a7 100644 |
--- a/content/browser/loader/cross_site_resource_handler.cc |
+++ b/content/browser/loader/cross_site_resource_handler.cc |
@@ -91,9 +91,8 @@ bool CrossSiteResourceHandler::OnResponseStarted( |
// In both cases, the pending RenderViewHost will stick around until the next |
// cross-site navigation, since we are unable to tell when to destroy it. |
// See RenderViewHostManager::RendererAbortedProvisionalLoad. |
- if (info->is_download() || |
- (response->head.headers && |
- response->head.headers->response_code() == 204)) { |
+ if (info->is_download() || (response->head.headers.get() && |
+ response->head.headers->response_code() == 204)) { |
return next_handler_->OnResponseStarted(request_id, response, defer); |
} |