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

Unified Diff: components/navigation_interception/intercept_navigation_resource_throttle.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: components/navigation_interception/intercept_navigation_resource_throttle.cc
diff --git a/components/navigation_interception/intercept_navigation_resource_throttle.cc b/components/navigation_interception/intercept_navigation_resource_throttle.cc
index f8f094e51a2513d2e099cd12de80b4e36381d12b..8729d2ceeb9d86aef105ba26779071276d2fa358 100644
--- a/components/navigation_interception/intercept_navigation_resource_throttle.cc
+++ b/components/navigation_interception/intercept_navigation_resource_throttle.cc
@@ -92,6 +92,8 @@ std::string InterceptNavigationResourceThrottle::GetMethodAfterRedirect() {
net::HttpResponseHeaders* headers = request_->response_headers();
if (!headers)
return request_->method();
+ // TODO(davidben): Plumb net::RedirectInfo through content::ResourceThrottle
+ // and unexpose net::URLRequest::ComputeMethodForRedirect.
return net::URLRequest::ComputeMethodForRedirect(
request_->method(), headers->response_code());
}

Powered by Google App Engine
This is Rietveld 408576698