summaryrefslogtreecommitdiffstats
path: root/content/browser/download/download_file_impl.cc
diff options
context:
space:
mode:
authortyoshino@chromium.org <tyoshino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-02 11:02:30 +0000
committertyoshino@chromium.org <tyoshino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-02 11:02:30 +0000
commit8d0c23eeb75151fc39ec6db2f58bcac097904bf4 (patch)
tree0fce5027e9b934673011b446d9cae52801c1c3b5 /content/browser/download/download_file_impl.cc
parent88a6f537e7b56479f2e758cea80029468011daec (diff)
downloadchromium_src-8d0c23eeb75151fc39ec6db2f58bcac097904bf4.zip
chromium_src-8d0c23eeb75151fc39ec6db2f58bcac097904bf4.tar.gz
chromium_src-8d0c23eeb75151fc39ec6db2f58bcac097904bf4.tar.bz2
Make ByteStream independent from DownloadInterruptReason
Change status type to int to make it portable to other component. After this change, ByteStream could be moved under src/net/base/ or src/base directory. - Comment fix (MaybePostToPeer -> Write) BUG=169957 Review URL: https://chromiumcodereview.appspot.com/18284005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215265 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/download/download_file_impl.cc')
-rw-r--r--content/browser/download/download_file_impl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/browser/download/download_file_impl.cc b/content/browser/download/download_file_impl.cc
index edd7fed..bbe317b 100644
--- a/content/browser/download/download_file_impl.cc
+++ b/content/browser/download/download_file_impl.cc
@@ -232,7 +232,8 @@ void DownloadFileImpl::StreamActive() {
break;
case ByteStreamReader::STREAM_COMPLETE:
{
- reason = stream_reader_->GetStatus();
+ reason = static_cast<DownloadInterruptReason>(
+ stream_reader_->GetStatus());
SendUpdate();
base::TimeTicks close_start(base::TimeTicks::Now());
file_.Finish();