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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2390353002: Remove testing early return in RenderFrame::willSendRequest (Closed)
Patch Set: Created 4 years, 2 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/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index b15731cc3614963ced8c7dd7a64cbe1dd3390b5f..ad906f194eab65d2fbac258f9bee7307ccb5c952 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -3964,9 +3964,6 @@ void RenderFrameImpl::saveImageFromDataURL(const blink::WebString& data_url) {
void RenderFrameImpl::willSendRequest(blink::WebLocalFrame* frame,
blink::WebURLRequest& request) {
DCHECK_EQ(frame_, frame);
- // The request my be empty during tests.
- if (request.url().isEmpty())
- return;
// Set the first party for cookies url if it has not been set yet (new
// requests). This value will be updated during redirects, consistent with
« 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