| Index: content/browser/download/download_resource_handler.cc
|
| diff --git a/content/browser/download/download_resource_handler.cc b/content/browser/download/download_resource_handler.cc
|
| index a803d015d6e85519b3f4811be9eae38c330b31c5..388bcd1e5a9a2853f21adef2a372f92cbae8dce5 100644
|
| --- a/content/browser/download/download_resource_handler.cc
|
| +++ b/content/browser/download/download_resource_handler.cc
|
| @@ -380,7 +380,7 @@ bool DownloadResourceHandler::OnResponseCompleted(
|
|
|
| // Send the info down the stream. Conditional is in case we get
|
| // OnResponseCompleted without OnResponseStarted.
|
| - if (stream_writer_.get())
|
| + if (stream_writer_)
|
| stream_writer_->Close(reason);
|
|
|
| // If the error mapped to something unknown, record it so that
|
| @@ -480,7 +480,7 @@ DownloadResourceHandler::~DownloadResourceHandler() {
|
| CallStartedCB(NULL, net::ERR_ACCESS_DENIED);
|
|
|
| // Remove output stream callback if a stream exists.
|
| - if (stream_writer_.get())
|
| + if (stream_writer_)
|
| stream_writer_->RegisterCallback(base::Closure());
|
|
|
| UMA_HISTOGRAM_TIMES("SB2.DownloadDuration",
|
|
|