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

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

Issue 10700170: Fix transferring processes during a redirect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | content/browser/renderer_host/resource_dispatcher_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/resource_dispatcher_host_impl.cc
===================================================================
--- content/browser/renderer_host/resource_dispatcher_host_impl.cc (revision 146180)
+++ content/browser/renderer_host/resource_dispatcher_host_impl.cc (working copy)
@@ -934,6 +934,10 @@
net::URLRequest* request;
if (deferred_loader.get()) {
request = deferred_loader->request();
+
+ // Give the ResourceLoader (or any of the ResourceHandlers held by it) a
+ // chance to reset some state before we complete the transfer.
+ deferred_loader->WillCompleteTransfer();
} else {
new_request.reset(new net::URLRequest(
request_data.url,
« no previous file with comments | « no previous file | content/browser/renderer_host/resource_dispatcher_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698