| Index: content/browser/streams/stream_handle_impl.cc
|
| diff --git a/content/browser/streams/stream_handle_impl.cc b/content/browser/streams/stream_handle_impl.cc
|
| index d07c1438936074ecb26c4f67535893026f9dfdf8..949e2fbf78ad56f6cf292caaf9486f40140e50dd 100644
|
| --- a/content/browser/streams/stream_handle_impl.cc
|
| +++ b/content/browser/streams/stream_handle_impl.cc
|
| @@ -30,11 +30,15 @@ StreamHandleImpl::StreamHandleImpl(
|
| url_(stream->url()),
|
| original_url_(original_url),
|
| mime_type_(mime_type),
|
| - // Make a copy of the response headers so it is safe to pass this across
|
| - // threads.
|
| - response_headers_(
|
| - new net::HttpResponseHeaders(response_headers->raw_headers())),
|
| - stream_message_loop_(base::MessageLoopProxy::current().get()) {}
|
| + response_headers_(NULL),
|
| + stream_message_loop_(base::MessageLoopProxy::current().get()) {
|
| + // Make a copy of the response headers so it is safe to pass this across
|
| + // threads.
|
| + if (response_headers.get()) {
|
| + response_headers_ =
|
| + new net::HttpResponseHeaders(response_headers->raw_headers());
|
| + }
|
| +}
|
|
|
| StreamHandleImpl::~StreamHandleImpl() {
|
| stream_message_loop_->PostTaskAndReply(FROM_HERE,
|
|
|