Index: net/url_request/url_request_test_util.cc |
diff --git a/net/url_request/url_request_test_util.cc b/net/url_request/url_request_test_util.cc |
index 47604100853bd377e33d769caa5179d1f33349da..17ad31166fbe354f317561a2603be267d79ed911 100644 |
--- a/net/url_request/url_request_test_util.cc |
+++ b/net/url_request/url_request_test_util.cc |
@@ -411,7 +411,8 @@ int TestNetworkDelegate::OnHeadersReceived( |
URLRequest* request, |
const CompletionCallback& callback, |
const HttpResponseHeaders* original_response_headers, |
- scoped_refptr<HttpResponseHeaders>* override_response_headers) { |
+ scoped_refptr<HttpResponseHeaders>* override_response_headers, |
+ GURL* allowed_unsafe_redirect_url) { |
int req_id = request->identifier(); |
event_order_[req_id] += "OnHeadersReceived\n"; |
InitRequestStatesIfNew(req_id); |
@@ -436,6 +437,9 @@ int TestNetworkDelegate::OnHeadersReceived( |
"Location: " + redirect_on_headers_received_url_.spec()); |
redirect_on_headers_received_url_ = GURL(); |
+ |
+ if (!allowed_unsafe_redirect_url_.is_empty()) |
+ *allowed_unsafe_redirect_url = allowed_unsafe_redirect_url_; |
} |
return OK; |