summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/async_resource_handler.cc
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-31 23:01:20 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-31 23:01:20 +0000
commit31f49e54f645246badf032e0a1b4fd630fb6aeda (patch)
treecd5f4a311d509d128f7c65ed1c72ce0426c62760 /chrome/browser/renderer_host/async_resource_handler.cc
parent5a5b3954433e8d3121ea35ed13ec8e4cb2fa16f6 (diff)
downloadchromium_src-31f49e54f645246badf032e0a1b4fd630fb6aeda.zip
chromium_src-31f49e54f645246badf032e0a1b4fd630fb6aeda.tar.gz
chromium_src-31f49e54f645246badf032e0a1b4fd630fb6aeda.tar.bz2
CHECK that IOBuffer::data_ in AsyncResourceHandler is not NULL before caching it.
BUG=http://crbug.com/16371 Review URL: http://codereview.chromium.org/159730 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22214 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/async_resource_handler.cc')
-rw-r--r--chrome/browser/renderer_host/async_resource_handler.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/async_resource_handler.cc b/chrome/browser/renderer_host/async_resource_handler.cc
index dfd1f56..95852be 100644
--- a/chrome/browser/renderer_host/async_resource_handler.cc
+++ b/chrome/browser/renderer_host/async_resource_handler.cc
@@ -141,6 +141,8 @@ bool AsyncResourceHandler::OnResponseCompleted(
if (g_spare_read_buffer) {
read_buffer_ = NULL;
} else if (read_buffer_.get()) {
+ // TODO(willchan): Remove after debugging bug 16371.
+ CHECK(read_buffer_->data());
read_buffer_.swap(&g_spare_read_buffer);
}
return true;