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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host_unittest.cc

Issue 9836066: Have content cancel requests for ResourceContexts when they shutdown, instead of depending on the e… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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
Index: content/browser/renderer_host/resource_dispatcher_host_unittest.cc
===================================================================
--- content/browser/renderer_host/resource_dispatcher_host_unittest.cc (revision 128565)
+++ content/browser/renderer_host/resource_dispatcher_host_unittest.cc (working copy)
@@ -933,6 +933,9 @@
MakeTestRequest(filter_.get(), 2, 5, net::URLRequestTestJob::test_url_2());
MakeTestRequest(filter_.get(), 2, 6, net::URLRequestTestJob::test_url_3());
+ host_.CancelRequestsForProcess(filter_->child_id());
+ host_.CancelRequestsForProcess(second_filter->child_id());
+
// Flush all the pending requests.
while (net::URLRequestTestJob::ProcessOnePendingMessage()) {}
}
« no previous file with comments | « content/browser/renderer_host/resource_dispatcher_host_impl.h ('k') | content/browser/resource_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698