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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2459143002: Avoid GURL allocations/copies/frees in RenderFrameImpl::willSendRequest (Closed)
Patch Set: s/host/host_piece Created 4 years, 1 month 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: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index bee026175e79ff5c42fd25df1a450f226d22654c..a554c9ed4ef36f48d3d866aa91dac4d109d75359 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -4167,13 +4167,11 @@ void RenderFrameImpl::willSendRequest(blink::WebLocalFrame* frame,
transition_type | ui::PAGE_TRANSITION_CLIENT_REDIRECT);
}
- GURL request_url(request.url());
GURL new_url;
if (GetContentClient()->renderer()->WillSendRequest(
frame,
transition_type,
- request_url,
- request.firstPartyForCookies(),
+ request.url(),
&new_url)) {
request.setURL(WebURL(new_url));
}
« no previous file with comments | « content/public/renderer/content_renderer_client.cc ('k') | extensions/shell/renderer/shell_content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698