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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 2037733002: PlzNavigate: fix RenderViewImplTest.OnNavigationHttpPost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index 7750932e8d9bfc2fbd059e4314ea0eadf9b1ef83..b2a6f15ba1564d73482c11b5bc7f0f6c7d530cda 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -436,12 +436,6 @@ void WebURLLoaderImpl::Context::Start(const WebURLRequest& request,
SyncLoadResponse* sync_load_response) {
DCHECK(request_id_ == -1);
request_ = request; // Save the request.
- if (request.getExtraData()) {
- RequestExtraData* extra_data =
- static_cast<RequestExtraData*>(request.getExtraData());
- stream_override_ = extra_data->TakeStreamOverrideOwnership();
- }
-
GURL url = request.url();
if (CanHandleDataURLRequestLocally()) {
@@ -461,6 +455,13 @@ void WebURLLoaderImpl::Context::Start(const WebURLRequest& request,
return;
}
+ if (request.getExtraData()) {
+ RequestExtraData* extra_data =
+ static_cast<RequestExtraData*>(request.getExtraData());
+ stream_override_ = extra_data->TakeStreamOverrideOwnership();
+ }
+
+
// PlzNavigate: outside of tests, the only navigation requests going through
// the WebURLLoader are the ones created by CommitNavigation. Several browser
// tests load HTML directly through a data url which will be handled by the
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698