Skip to content
Snippets Groups Projects
Commit 31f49e54 authored by willchan@chromium.org's avatar willchan@chromium.org
Browse files

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
parent 5a5b3954
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment