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

Unified Diff: content/browser/download/download_resource_handler.cc

Issue 398903002: Plumb redirect info out of net, through content, and into child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a TODO Created 6 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
Index: content/browser/download/download_resource_handler.cc
diff --git a/content/browser/download/download_resource_handler.cc b/content/browser/download/download_resource_handler.cc
index 0a19163c9c3f8ae40a9532e13780c89acac15fab..1fe8d11756fd64153909f5648dc0583e5d439fb4 100644
--- a/content/browser/download/download_resource_handler.cc
+++ b/content/browser/download/download_resource_handler.cc
@@ -141,12 +141,9 @@ bool DownloadResourceHandler::OnUploadProgress(uint64 position,
}
bool DownloadResourceHandler::OnRequestRedirected(
- const GURL& url,
+ const net::RedirectInfo& redirect_info,
ResourceResponse* response,
bool* defer) {
mmenke 2014/07/17 16:55:09 Was code you removed redundant, or should we be se
davidben 2014/07/17 22:03:54 Hrm, oh it's not quite redundant because requests
- // We treat a download as a main frame load, and thus update the policy URL
- // on redirects.
- request()->set_first_party_for_cookies(url);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698