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

Unified Diff: content/test/weburl_loader_mock.cc

Issue 607383002: WebURLLoaderMock should set a request context for redirects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/weburl_loader_mock.cc
diff --git a/content/test/weburl_loader_mock.cc b/content/test/weburl_loader_mock.cc
index 056564a839cf96be509cab9fb7b6a2f7a71a7cdb..02047a3c893d20f873b5f0bd2082fcbb222d3883 100644
--- a/content/test/weburl_loader_mock.cc
+++ b/content/test/weburl_loader_mock.cc
@@ -58,6 +58,7 @@ blink::WebURLRequest WebURLLoaderMock::ServeRedirect(
const blink::WebURLResponse& redirectResponse) {
blink::WebURLRequest newRequest;
newRequest.initialize();
+ newRequest.setRequestContext(blink::WebURLRequest::RequestContextInternal);
GURL redirectURL(redirectResponse.httpHeaderField("Location"));
newRequest.setURL(redirectURL);
client_->willSendRequest(this, newRequest, redirectResponse);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698