diff options
Diffstat (limited to 'content/browser/download/download_resource_handler.cc')
-rw-r--r-- | content/browser/download/download_resource_handler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/download/download_resource_handler.cc b/content/browser/download/download_resource_handler.cc index a803d015d6..388bcd1e5a 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", |