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

Unified Diff: third_party/WebKit/Source/core/loader/PingLoader.cpp

Issue 2203613003: Split header modification out of willSendRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Filter the header instead Created 4 years, 4 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
Index: third_party/WebKit/Source/core/loader/PingLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/PingLoader.cpp b/third_party/WebKit/Source/core/loader/PingLoader.cpp
index ebca3b3dce6c3cd2e53b494b39b011969e825638..83b68310befad01476f828639d5f301cf18c09ff 100644
--- a/third_party/WebKit/Source/core/loader/PingLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/PingLoader.cpp
@@ -139,6 +139,7 @@ PingLoader::PingLoader(LocalFrame* frame, ResourceRequest& request, const FetchI
{
frame->loader().client()->didDispatchPingLoader(request.url());
frame->document()->fetcher()->context().willStartLoadingResource(m_identifier, request, Resource::Image);
+ frame->document()->fetcher()->context().prepareRequest(m_identifier, request, ResourceResponse());
frame->document()->fetcher()->context().dispatchWillSendRequest(m_identifier, request, ResourceResponse(), initiatorInfo);
m_loader = wrapUnique(Platform::current()->createURLLoader());

Powered by Google App Engine
This is Rietveld 408576698