summaryrefslogtreecommitdiff
path: root/content/browser/download/download_resource_handler.cc
diff options
context:
space:
mode:
authorTorne (Richard Coles) <torne@google.com>2013-05-09 18:35:53 +0100
committerTorne (Richard Coles) <torne@google.com>2013-05-13 13:57:14 +0100
commitc2e0dbddbe15c98d52c4786dac06cb8952a8ae6d (patch)
tree1dbdbb0624cc869ab25ee7f46971984c6fee3e7a /content/browser/download/download_resource_handler.cc
parent2d519ce2457219605d4f472da8d2ffd469796035 (diff)
downloadchromium_org-c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d.tar.gz
Merge from Chromium at DEPS revision r198571
This commit was generated by merge_to_master.py. Change-Id: I951118a03836157090561764dd2627f0add8118f
Diffstat (limited to 'content/browser/download/download_resource_handler.cc')
-rw-r--r--content/browser/download/download_resource_handler.cc4
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",