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

Unified Diff: net/url_request/url_request_test_job.cc

Issue 18541: Add a constraint on how many requests can be outstanding for any given render (browser-side). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « net/url_request/url_request.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_test_job.cc
===================================================================
--- net/url_request/url_request_test_job.cc (revision 9239)
+++ net/url_request/url_request_test_job.cc (working copy)
@@ -129,12 +129,8 @@
}
void URLRequestTestJob::Kill() {
- if (request_) {
- // Note that this state will still cause a NotifyDone to get called
- // in ProcessNextOperation, which is required for jobs.
- stage_ = ALL_DATA;
- pending_jobs.push_back(scoped_refptr<URLRequestTestJob>(this));
- }
+ stage_ = DONE;
+ URLRequestJob::Kill();
}
bool URLRequestTestJob::ProcessNextOperation() {
« no previous file with comments | « net/url_request/url_request.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698