Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1950)

Unified Diff: chrome/browser/net/url_request_slow_download_job.cc

Issue 3052016: Make sure the job state matches the return value.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/url_request_slow_download_job.cc
===================================================================
--- chrome/browser/net/url_request_slow_download_job.cc (revision 53788)
+++ chrome/browser/net/url_request_slow_download_job.cc (working copy)
@@ -100,7 +100,6 @@
*bytes_read = send_size;
first_download_size_remaining_ -= send_size;
- SetStatus(URLRequestStatus(URLRequestStatus::IO_PENDING, 0));
DCHECK(!is_done());
return true;
}
@@ -112,6 +111,7 @@
// If we make it here, the first chunk has been sent and we need to wait
// until a request is made for kFinishDownloadUrl.
+ SetStatus(URLRequestStatus(URLRequestStatus::IO_PENDING, 0));
MessageLoop::current()->PostDelayedTask(FROM_HERE, NewRunnableMethod(
this, &URLRequestSlowDownloadJob::CheckDoneStatus), 100);
AddRef();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698