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

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

Issue 2748463002: Split header modification out of willSendRequest
Patch Set: bug fix Created 3 years, 9 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 e9cddb9b2385cf0f7c36e00878fa6207edcae0d6..918d626ab45da7eb702e215b0db8ab0a9f736dbe 100644
--- a/third_party/WebKit/Source/core/loader/PingLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/PingLoader.cpp
@@ -259,6 +259,7 @@ PingLoaderImpl::PingLoaderImpl(LocalFrame* frame,
FetchInitiatorInfo initiatorInfo;
initiatorInfo.name = initiator;
+ fetchContext.prepareRequest(m_identifier, request);
fetchContext.dispatchWillSendRequest(m_identifier, request,
ResourceResponse(), initiatorInfo);
@@ -332,8 +333,10 @@ bool PingLoaderImpl::willFollowRedirect(
FetchInitiatorInfo initiatorInfo;
initiatorInfo.name = m_initiator;
FetchContext& fetchContext = frame()->document()->fetcher()->context();
+ fetchContext.prepareRequest(m_identifier,
+ passedNewRequest.toMutableResourceRequest());
fetchContext.dispatchWillSendRequest(
- m_identifier, passedNewRequest.toMutableResourceRequest(),
+ m_identifier, passedNewRequest.toResourceRequest(),
passedRedirectResponse.toResourceResponse(), initiatorInfo);
}

Powered by Google App Engine
This is Rietveld 408576698