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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 1064413003: PlzNavigate: make RenderViewtest helper functions work (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/public/test/render_view_test.cc » ('j') | content/public/test/render_view_test.cc » ('J')
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 e2cec70d33531e72ea4eb4d3a7a83f4120a9b233..a6a62c391bde72f6ae1e5a029df2c2df302f742c 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -449,13 +449,6 @@ void WebURLLoaderImpl::Context::Start(const WebURLRequest& request,
url = stream_override_->stream_url;
}
- // PlzNavigate: the only navigation requests going through the WebURLLoader
- // are the ones created by CommitNavigation.
- DCHECK(!base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableBrowserSideNavigation) ||
- stream_override_.get() ||
- request.frameType() == WebURLRequest::FrameTypeNone);
-
if (CanHandleDataURLRequestLocally()) {
if (sync_load_response) {
// This is a sync load. Do the work now.
@@ -470,6 +463,13 @@ void WebURLLoaderImpl::Context::Start(const WebURLRequest& request,
return;
}
+ // PlzNavigate: the only navigation requests going through the WebURLLoader
+ // are the ones created by CommitNavigation.
+ DCHECK(!base::CommandLine::ForCurrentProcess()->HasSwitch(
clamy 2015/04/08 14:19:30 Several tests load HTML through a data url, requir
Charlie Reis 2015/04/09 00:47:40 Sure. Please update the comment, though, since th
clamy 2015/04/09 15:55:06 Done.
+ switches::kEnableBrowserSideNavigation) ||
+ stream_override_.get() ||
+ request.frameType() == WebURLRequest::FrameTypeNone);
carlosk 2015/04/08 15:16:42 For clarity this should be updated to use (the rec
clamy 2015/04/09 15:55:06 Done. Clearer indeed.
+
GURL referrer_url(
request.httpHeaderField(WebString::fromUTF8("Referer")).latin1());
const std::string& method = request.httpMethod().latin1();
« no previous file with comments | « no previous file | content/public/test/render_view_test.cc » ('j') | content/public/test/render_view_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698